Struct async_smux::builder::MuxBuilder
source · pub struct MuxBuilder<State> { /* private fields */ }
Implementations§
source§impl MuxBuilder<Begin>
impl MuxBuilder<Begin>
pub fn client() -> MuxBuilder<WithConfig>
pub fn server() -> MuxBuilder<WithConfig>
source§impl MuxBuilder<WithConfig>
impl MuxBuilder<WithConfig>
pub fn with_keep_alive_interval( &mut self, interval_secs: NonZeroU64 ) -> &mut Self
pub fn with_idle_timeout(&mut self, timeout_secs: NonZeroU64) -> &mut Self
pub fn with_max_tx_queue(&mut self, size: NonZeroUsize) -> &mut Self
pub fn with_max_rx_queue(&mut self, size: NonZeroUsize) -> &mut Self
pub fn with_connection<T: TokioConn>( &mut self, connection: T ) -> MuxBuilder<WithConnection<T>>
source§impl<T: TokioConn> MuxBuilder<WithConnection<T>>
impl<T: TokioConn> MuxBuilder<WithConnection<T>>
pub fn build(self) -> (MuxConnector<T>, MuxAcceptor<T>, MuxWorker<T>)
Auto Trait Implementations§
impl<State> RefUnwindSafe for MuxBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for MuxBuilder<State>where
State: Send,
impl<State> Sync for MuxBuilder<State>where
State: Sync,
impl<State> Unpin for MuxBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for MuxBuilder<State>where
State: UnwindSafe,
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