pub struct NewServiceBuilder<St, C, Io, Codec> { /* private fields */ }
Implementations§
Source§impl<St, C, Io, Codec> NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> NewServiceBuilder<St, C, Io, Codec>
Sourcepub fn disconnect<F>(self, disconnect: F) -> Self
pub fn disconnect<F>(self, disconnect: F) -> Self
Callback to execute on disconnect
Second parameter indicates error occured during disconnect.
pub fn finish<F, T, Cfg>(
self,
service: F,
) -> FramedService<St, C, T, Io, Codec, Cfg>where
F: IntoServiceFactory<T>,
T: ServiceFactory<Config = St, Request = Item<St, Codec>, Response = Option<<Codec as Encoder>::Item>, Error = C::Error, InitError = C::Error> + 'static,
Auto Trait Implementations§
impl<St, C, Io, Codec> Freeze for NewServiceBuilder<St, C, Io, Codec>where
C: Freeze,
impl<St, C, Io, Codec> !RefUnwindSafe for NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> !Send for NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> !Sync for NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> Unpin for NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> !UnwindSafe for NewServiceBuilder<St, C, Io, Codec>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more