pub struct Extension<'a> {
pub tag: ExtensionTag,
pub data: &'a [u8],
}Expand description
An additional piece of information which can be appended after payload data.
Converting the extension tag to UTF-8 strings or otherwise is an exercise left to the user.
Fields§
§tag: ExtensionTag§data: &'a [u8]Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Extension<'a>
impl<'a> RefUnwindSafe for Extension<'a>
impl<'a> Send for Extension<'a>
impl<'a> Sync for Extension<'a>
impl<'a> Unpin for Extension<'a>
impl<'a> UnwindSafe for Extension<'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