pub struct AsyncSendConnection<P: Parcel, S: AsyncWrite + Send + Unpin> {
pub writer: WriteHalf<S>,
pub transport: Simple,
pub middleware: Default,
pub settings: Settings,
pub _parcel: PhantomData<P>,
}
Expand description
A stream-based connection.
Fields§
§writer: WriteHalf<S>
§transport: Simple
§middleware: Default
§settings: Settings
§_parcel: PhantomData<P>
Implementations§
Source§impl<P, S> SendConnection<P, S>
impl<P, S> SendConnection<P, S>
Trait Implementations§
Auto Trait Implementations§
impl<P, S> Freeze for SendConnection<P, S>
impl<P, S> RefUnwindSafe for SendConnection<P, S>where
P: RefUnwindSafe,
impl<P, S> Send for SendConnection<P, S>where
P: Send,
impl<P, S> Sync for SendConnection<P, S>
impl<P, S> Unpin for SendConnection<P, S>where
P: Unpin,
impl<P, S> UnwindSafe for SendConnection<P, S>where
P: 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