Struct rustls::common_state::Context
source · pub(crate) struct Context<'a, Data> {
pub(crate) common: &'a mut CommonState,
pub(crate) data: &'a mut Data,
}
Fields§
§common: &'a mut CommonState
§data: &'a mut Data
Trait Implementations§
source§impl<'a, Data> From<&'a mut ConnectionCommon<Data>> for Context<'a, Data>
impl<'a, Data> From<&'a mut ConnectionCommon<Data>> for Context<'a, Data>
source§fn from(conn: &'a mut ConnectionCommon<Data>) -> Self
fn from(conn: &'a mut ConnectionCommon<Data>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, Data> Freeze for Context<'a, Data>
impl<'a, Data> !RefUnwindSafe for Context<'a, Data>
impl<'a, Data> Send for Context<'a, Data>where
Data: Send,
impl<'a, Data> Sync for Context<'a, Data>where
Data: Sync,
impl<'a, Data> Unpin for Context<'a, Data>
impl<'a, Data> !UnwindSafe for Context<'a, 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