Struct EstablishedConnection
pub(super) struct EstablishedConnection<R, W> {
pub(super) reader: R,
pub(super) writer: W,
pub(super) packet_reader: PacketReader<GrowBuffer>,
pub(super) outbound_aliases: OutboundAliases,
pub(super) inbound_aliases: InboundAliases,
pub(super) max_packet_size: Option<u32>,
pub(super) session_present: bool,
}Expand description
State produced by a successful connect + CONNACK handshake.
Fields§
§reader: R§writer: W§packet_reader: PacketReader<GrowBuffer>The framing buffer used to read the CONNACK, handed to the read loop so any bytes read past the CONNACK are not lost.
outbound_aliases: OutboundAliases§inbound_aliases: InboundAliases§max_packet_size: Option<u32>§session_present: boolAuto Trait Implementations§
impl<R, W> Freeze for EstablishedConnection<R, W>
impl<R, W> RefUnwindSafe for EstablishedConnection<R, W>where
R: RefUnwindSafe,
W: RefUnwindSafe,
impl<R, W> Send for EstablishedConnection<R, W>
impl<R, W> Sync for EstablishedConnection<R, W>
impl<R, W> Unpin for EstablishedConnection<R, W>
impl<R, W> UnwindSafe for EstablishedConnection<R, W>where
R: UnwindSafe,
W: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more