[−][src]Struct actix_ioframe::NewServiceBuilder
Methods
impl<St, C, Io, Codec> NewServiceBuilder<St, C, Io, Codec> where
St: 'static,
Io: AsyncRead + AsyncWrite,
C: ServiceFactory<Config = (), Request = Connect<Io>, Response = ConnectResult<Io, St, Codec>>,
C::Error: 'static,
C::Future: 'static,
Codec: Decoder + Encoder,
<Codec as Encoder>::Item: 'static,
<Codec as Encoder>::Error: Debug,
[src]
St: 'static,
Io: AsyncRead + AsyncWrite,
C: ServiceFactory<Config = (), Request = Connect<Io>, Response = ConnectResult<Io, St, Codec>>,
C::Error: 'static,
C::Future: 'static,
Codec: Decoder + Encoder,
<Codec as Encoder>::Item: 'static,
<Codec as Encoder>::Error: Debug,
pub fn disconnect<F>(self, disconnect: F) -> Self where
F: Fn(&mut St, bool) + 'static,
[src]
F: Fn(&mut St, bool) + 'static,
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,
[src]
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> !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> where
C: Unpin,
Codec: Unpin,
Io: Unpin,
St: Unpin,
C: Unpin,
Codec: Unpin,
Io: Unpin,
St: Unpin,
impl<St, C, Io, Codec> !UnwindSafe for NewServiceBuilder<St, C, Io, Codec>
impl<St, C, Io, Codec> !RefUnwindSafe for NewServiceBuilder<St, C, Io, Codec>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,