diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs index 0d4f7c63..6f8f3002 100644 --- a/actix-server-config/src/lib.rs +++ b/actix-server-config/src/lib.rs @@ -89,6 +89,15 @@ impl Io { self.proto } + /// Return new Io object with new parameter. + pub fn set(self, params: U) -> Io { + Io { + io: self.io, + proto: self.proto, + params: params, + } + } + /// Maps an Io<_, P> to Io<_, U> by applying a function to a contained value. pub fn map(self, op: F) -> Io where