pub struct GenericNameComponent {
pub name: Bytes,
}
Fields§
§name: Bytes
Implementations§
Trait Implementations§
Source§impl AsMut<Bytes> for GenericNameComponent
impl AsMut<Bytes> for GenericNameComponent
Source§impl AsRef<Bytes> for GenericNameComponent
impl AsRef<Bytes> for GenericNameComponent
Source§impl Clone for GenericNameComponent
impl Clone for GenericNameComponent
Source§fn clone(&self) -> GenericNameComponent
fn clone(&self) -> GenericNameComponent
Returns a duplicate 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 Debug for GenericNameComponent
impl Debug for GenericNameComponent
Source§impl From<Bytes> for GenericNameComponent
impl From<Bytes> for GenericNameComponent
Source§fn from(original: Bytes) -> GenericNameComponent
fn from(original: Bytes) -> GenericNameComponent
Converts to this type from the input type.
Source§impl From<GenericNameComponent> for Bytes
impl From<GenericNameComponent> for Bytes
Source§fn from(original: GenericNameComponent) -> Self
fn from(original: GenericNameComponent) -> Self
Converts to this type from the input type.
Source§impl From<GenericNameComponent> for NameComponent
impl From<GenericNameComponent> for NameComponent
Source§fn from(original: GenericNameComponent) -> NameComponent
fn from(original: GenericNameComponent) -> NameComponent
Converts to this type from the input type.
Source§impl Hash for GenericNameComponent
impl Hash for GenericNameComponent
Source§impl PartialEq for GenericNameComponent
impl PartialEq for GenericNameComponent
Source§impl Tlv for GenericNameComponent
impl Tlv for GenericNameComponent
Source§fn inner_size(&self) -> usize
fn inner_size(&self) -> usize
The size of the payload contained within this TLV Read more
Source§fn critical() -> bool
fn critical() -> bool
Whether the TLV is critical, see
tlv_critical
Source§impl TlvDecode for GenericNameComponent
impl TlvDecode for GenericNameComponent
Source§impl TlvEncode for GenericNameComponent
impl TlvEncode for GenericNameComponent
impl Eq for GenericNameComponent
impl StructuralPartialEq for GenericNameComponent
Auto Trait Implementations§
impl !Freeze for GenericNameComponent
impl RefUnwindSafe for GenericNameComponent
impl Send for GenericNameComponent
impl Sync for GenericNameComponent
impl Unpin for GenericNameComponent
impl UnwindSafe for GenericNameComponent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more