pub struct Tlv<'a> {
pub tlv_type: TlvType,
pub value: Cow<'a, [u8]>,
}Expand description
A single TLV that can be afixed to a PTP message.
Fields§
§tlv_type: TlvTypeThe type of this TLV.
value: Cow<'a, [u8]>The actual contents of the TLV.
Note that this is of type &'a [u8] instead when the standard library
feature is disabled.
Implementations§
Trait Implementations§
impl<'a> Eq for Tlv<'a>
impl<'a> StructuralPartialEq for Tlv<'a>
Auto Trait Implementations§
impl<'a> Forget for Tlv<'a>
impl<'a> Freeze for Tlv<'a>
impl<'a> Move for Tlv<'a>
impl<'a> RefUnwindSafe for Tlv<'a>
impl<'a> Send for Tlv<'a>
impl<'a> Sync for Tlv<'a>
impl<'a> Unpin for Tlv<'a>
impl<'a> UnsafeUnpin for Tlv<'a>
impl<'a> UnwindSafe for Tlv<'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