ToBoxedClient

Trait ToBoxedClient 

Source
pub trait ToBoxedClient {
    type Error: MaybeSend + MaybeSync;

    // Required methods
    fn boxed(self) -> BoxClient<Self::Error>;
    fn arced(self) -> ArcClient<Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn boxed(self) -> BoxClient<Self::Error>

Source

fn arced(self) -> ArcClient<Self::Error>

Implementors§

Source§

impl<C> ToBoxedClient for C
where C: Client + IsConnectedCheck + 'static, C::Stream: 'static,

Source§

type Error = <C as Client>::Error