Struct ReadTraffic
pub struct ReadTraffic<'c, 'i, Data> { /* private fields */ }Available on crate feature
tls only.Expand description
Application data is available
Implementations§
§impl<'c, 'i, Data> ReadTraffic<'c, 'i, Data>
impl<'c, 'i, Data> ReadTraffic<'c, 'i, Data>
pub fn next_record(&mut self) -> Option<Result<AppDataRecord<'_>, Error>>
pub fn next_record(&mut self) -> Option<Result<AppDataRecord<'_>, Error>>
Decrypts and returns the next available app-data record
Trait Implementations§
§impl<'c, 'i, Data> From<ReadTraffic<'c, 'i, Data>> for ConnectionState<'c, 'i, Data>
impl<'c, 'i, Data> From<ReadTraffic<'c, 'i, Data>> for ConnectionState<'c, 'i, Data>
§fn from(v: ReadTraffic<'c, 'i, Data>) -> ConnectionState<'c, 'i, Data>
fn from(v: ReadTraffic<'c, 'i, Data>) -> ConnectionState<'c, 'i, Data>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c, 'i, Data> Freeze for ReadTraffic<'c, 'i, Data>
impl<'c, 'i, Data> !RefUnwindSafe for ReadTraffic<'c, 'i, Data>
impl<'c, 'i, Data> Send for ReadTraffic<'c, 'i, Data>where
Data: Send,
impl<'c, 'i, Data> Sync for ReadTraffic<'c, 'i, Data>where
Data: Sync,
impl<'c, 'i, Data> Unpin for ReadTraffic<'c, 'i, Data>
impl<'c, 'i, Data> !UnwindSafe for ReadTraffic<'c, 'i, Data>
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