pub struct Connection<C, B>where
C: Connection<B>,
B: Buf,{ /* private fields */ }Implementations§
Source§impl<C, B, E, E2> Connection<C, B>
impl<C, B, E, E2> Connection<C, B>
Sourcepub fn split(self) -> (Incoming<C, B>, ConnectionDriver<C, B>)
pub fn split(self) -> (Incoming<C, B>, ConnectionDriver<C, B>)
Take the request acceptor
Sourcepub fn driver(&mut self) -> &mut ConnectionDriver<C, B>
pub fn driver(&mut self) -> &mut ConnectionDriver<C, B>
Get a mutable reference to the driver
Auto Trait Implementations§
impl<C, B> Freeze for Connection<C, B>
impl<C, B> RefUnwindSafe for Connection<C, B>where
C: RefUnwindSafe,
<C as OpenStreams<B>>::SendStream: RefUnwindSafe,
B: RefUnwindSafe,
<C as Connection<B>>::RecvStream: RefUnwindSafe,
impl<C, B> Send for Connection<C, B>
impl<C, B> Sync for Connection<C, B>
impl<C, B> Unpin for Connection<C, B>
impl<C, B> UnwindSafe for Connection<C, B>where
C: UnwindSafe,
<C as OpenStreams<B>>::SendStream: UnwindSafe,
B: UnwindSafe,
<C as Connection<B>>::RecvStream: 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