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