pub struct SplitConnection<Side: SideData> {
pub send: SendTraffic,
pub receive: ReceiveTraffic<Side>,
pub outputs: ConnectionOutputs,
}Expand description
A post-handshake connection which has been split by direction.
Typically you will immediately destructure this type, and give the components to different threads/handlers to progress separately.
Fields§
§send: SendTrafficThe ability to encrypt data to be sent.
receive: ReceiveTraffic<Side>The ability to decrypt received data.
outputs: ConnectionOutputsFacts about the connection established during the handshake.
Trait Implementations§
Auto Trait Implementations§
impl<Side> !RefUnwindSafe for SplitConnection<Side>
impl<Side> !UnwindSafe for SplitConnection<Side>
impl<Side> Freeze for SplitConnection<Side>where
<Side as Side>::State: Freeze,
impl<Side> Send for SplitConnection<Side>where
<Side as Side>::State: Send,
impl<Side> Sync for SplitConnection<Side>where
<Side as Side>::State: Sync,
impl<Side> Unpin for SplitConnection<Side>where
<Side as Side>::State: Unpin,
impl<Side> UnsafeUnpin for SplitConnection<Side>where
<Side as Side>::State: UnsafeUnpin,
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