[][src]Struct actori_ioframe::FactoryBuilder

pub struct FactoryBuilder<St, C, Io, Codec, Out> { /* fields omitted */ }

Service builder - structure that follows the builder pattern for building instances for framed services.

Methods

impl<St, C, Io, Codec, Out> FactoryBuilder<St, C, Io, Codec, Out> where
    Io: AsyncRead + AsyncWrite,
    C: ServiceFactory<Config = (), Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
    Codec: Decoder + Encoder,
    <Codec as Encoder>::Error: Debug,
    Out: Stream<Item = <Codec as Encoder>::Item> + Unpin
[src]

pub fn new<F>(connect: F) -> FactoryBuilder<St, C, Io, Codec, Out> where
    F: IntoServiceFactory<C>,
    Io: AsyncRead + AsyncWrite,
    C: ServiceFactory<Config = (), Request = Connect<Io, Codec>, Response = ConnectResult<Io, St, Codec, Out>>,
    Codec: Decoder + Encoder,
    Out: Stream<Item = <Codec as Encoder>::Item> + Unpin
[src]

Construct framed handler new service with specified connect service

pub fn build<F, T, Cfg>(
    self,
    service: F
) -> FramedService<St, C, T, Io, Codec, Out, Cfg> 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]

Auto Trait Implementations

impl<St, C, Io, Codec, Out> RefUnwindSafe for FactoryBuilder<St, C, Io, Codec, Out> where
    C: RefUnwindSafe,
    Codec: RefUnwindSafe,
    Io: RefUnwindSafe,
    Out: RefUnwindSafe,
    St: RefUnwindSafe

impl<St, C, Io, Codec, Out> Send for FactoryBuilder<St, C, Io, Codec, Out> where
    C: Send,
    Codec: Send,
    Io: Send,
    Out: Send,
    St: Send

impl<St, C, Io, Codec, Out> Sync for FactoryBuilder<St, C, Io, Codec, Out> where
    C: Sync,
    Codec: Sync,
    Io: Sync,
    Out: Sync,
    St: Sync

impl<St, C, Io, Codec, Out> Unpin for FactoryBuilder<St, C, Io, Codec, Out> where
    C: Unpin,
    Codec: Unpin,
    Io: Unpin,
    Out: Unpin,
    St: Unpin

impl<St, C, Io, Codec, Out> UnwindSafe for FactoryBuilder<St, C, Io, Codec, Out> where
    C: UnwindSafe,
    Codec: UnwindSafe,
    Io: UnwindSafe,
    Out: UnwindSafe,
    St: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.