[−][src]Struct requiem_ioframe::Builder
Service builder - structure that follows the builder pattern for building instances for framed services.
Methods
impl<St, C, Io, Codec, Out> Builder<St, C, Io, Codec, Out> where
C: Service<Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
Io: AsyncRead + AsyncWrite,
Codec: Decoder + Encoder,
<Codec as Encoder>::Item: 'static,
<Codec as Encoder>::Error: Debug,
Out: Stream<Item = <Codec as Encoder>::Item> + Unpin,
[src]
C: Service<Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
Io: AsyncRead + AsyncWrite,
Codec: Decoder + Encoder,
<Codec as Encoder>::Item: 'static,
<Codec as Encoder>::Error: Debug,
Out: Stream<Item = <Codec as Encoder>::Item> + Unpin,
pub fn new<F>(connect: F) -> Builder<St, C, Io, Codec, Out> where
F: IntoService<C>,
Io: AsyncRead + AsyncWrite,
C: Service<Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
Codec: Decoder + Encoder,
Out: Stream<Item = <Codec as Encoder>::Item>,
[src]
F: IntoService<C>,
Io: AsyncRead + AsyncWrite,
C: Service<Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
Codec: Decoder + Encoder,
Out: Stream<Item = <Codec as Encoder>::Item>,
Construct framed handler service with specified connect service
pub fn build<F, T>(
self,
service: F
) -> FramedServiceImpl<St, C, T, Io, Codec, Out> where
F: IntoServiceFactory<T>,
T: ServiceFactory<Config = St, Request = <Codec as Decoder>::Item, Response = Option<<Codec as Encoder>::Item>, Error = C::Error, InitError = C::Error>,
[src]
self,
service: F
) -> FramedServiceImpl<St, C, T, Io, Codec, Out> where
F: IntoServiceFactory<T>,
T: ServiceFactory<Config = St, Request = <Codec as Decoder>::Item, Response = Option<<Codec as Encoder>::Item>, Error = C::Error, InitError = C::Error>,
Provide stream items handler service and construct service factory.
Auto Trait Implementations
impl<St, C, Io, Codec, Out> RefUnwindSafe for Builder<St, C, Io, Codec, Out> where
C: RefUnwindSafe,
Codec: RefUnwindSafe,
Io: RefUnwindSafe,
Out: RefUnwindSafe,
St: RefUnwindSafe,
C: RefUnwindSafe,
Codec: RefUnwindSafe,
Io: RefUnwindSafe,
Out: RefUnwindSafe,
St: RefUnwindSafe,
impl<St, C, Io, Codec, Out> Send for Builder<St, C, Io, Codec, Out> where
C: Send,
Codec: Send,
Io: Send,
Out: Send,
St: Send,
C: Send,
Codec: Send,
Io: Send,
Out: Send,
St: Send,
impl<St, C, Io, Codec, Out> Sync for Builder<St, C, Io, Codec, Out> where
C: Sync,
Codec: Sync,
Io: Sync,
Out: Sync,
St: Sync,
C: Sync,
Codec: Sync,
Io: Sync,
Out: Sync,
St: Sync,
impl<St, C, Io, Codec, Out> Unpin for Builder<St, C, Io, Codec, Out> where
C: Unpin,
Codec: Unpin,
Io: Unpin,
Out: Unpin,
St: Unpin,
C: Unpin,
Codec: Unpin,
Io: Unpin,
Out: Unpin,
St: Unpin,
impl<St, C, Io, Codec, Out> UnwindSafe for Builder<St, C, Io, Codec, Out> where
C: UnwindSafe,
Codec: UnwindSafe,
Io: UnwindSafe,
Out: UnwindSafe,
St: UnwindSafe,
C: UnwindSafe,
Codec: UnwindSafe,
Io: UnwindSafe,
Out: UnwindSafe,
St: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,