pub struct TypeLengthValue<'a> {
pub kind: u8,
pub value: Cow<'a, [u8]>,
}
Expand description
A Type-Length-Value payload.
Fields§
§kind: u8
The type of the TypeLengthValue
.
value: Cow<'a, [u8]>
The value of the TypeLengthValue
.
Implementations§
Source§impl<'a> TypeLengthValue<'a>
impl<'a> TypeLengthValue<'a>
Sourcepub fn to_owned(&self) -> TypeLengthValue<'static>
pub fn to_owned(&self) -> TypeLengthValue<'static>
Creates an owned clone of this TypeLengthValue
.
Trait Implementations§
Source§impl<'a> Clone for TypeLengthValue<'a>
impl<'a> Clone for TypeLengthValue<'a>
Source§fn clone(&self) -> TypeLengthValue<'a>
fn clone(&self) -> TypeLengthValue<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for TypeLengthValue<'a>
impl<'a> Debug for TypeLengthValue<'a>
Source§impl<'a> Hash for TypeLengthValue<'a>
impl<'a> Hash for TypeLengthValue<'a>
Source§impl<'a> PartialEq for TypeLengthValue<'a>
impl<'a> PartialEq for TypeLengthValue<'a>
Source§impl WriteToHeader for TypeLengthValue<'_>
impl WriteToHeader for TypeLengthValue<'_>
impl<'a> Eq for TypeLengthValue<'a>
impl<'a> StructuralPartialEq for TypeLengthValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeLengthValue<'a>
impl<'a> RefUnwindSafe for TypeLengthValue<'a>
impl<'a> Send for TypeLengthValue<'a>
impl<'a> Sync for TypeLengthValue<'a>
impl<'a> Unpin for TypeLengthValue<'a>
impl<'a> UnwindSafe for TypeLengthValue<'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