pub struct TlsExtension<'a> {
pub extension_type: u16,
pub data: &'a [u8],
}Expand description
A single TLS extension (type + data).
Fields§
§extension_type: u16§data: &'a [u8]Trait Implementations§
Source§impl<'a> Clone for TlsExtension<'a>
impl<'a> Clone for TlsExtension<'a>
Source§fn clone(&self) -> TlsExtension<'a>
fn clone(&self) -> TlsExtension<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for TlsExtension<'a>
impl<'a> RefUnwindSafe for TlsExtension<'a>
impl<'a> Send for TlsExtension<'a>
impl<'a> Sync for TlsExtension<'a>
impl<'a> Unpin for TlsExtension<'a>
impl<'a> UnsafeUnpin for TlsExtension<'a>
impl<'a> UnwindSafe for TlsExtension<'a>
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