pub struct ContentType {
pub content_type: NonNegativeInteger,
}
Fields§
§content_type: NonNegativeInteger
Implementations§
Trait Implementations§
Source§impl AsMut<NonNegativeInteger> for ContentType
impl AsMut<NonNegativeInteger> for ContentType
Source§fn as_mut(&mut self) -> &mut NonNegativeInteger
fn as_mut(&mut self) -> &mut NonNegativeInteger
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<NonNegativeInteger> for ContentType
impl AsRef<NonNegativeInteger> for ContentType
Source§fn as_ref(&self) -> &NonNegativeInteger
fn as_ref(&self) -> &NonNegativeInteger
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ContentType
impl Clone for ContentType
Source§fn clone(&self) -> ContentType
fn clone(&self) -> ContentType
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 Debug for ContentType
impl Debug for ContentType
Source§impl Default for ContentType
impl Default for ContentType
Source§fn default() -> ContentType
fn default() -> ContentType
Returns the “default value” for a type. Read more
Source§impl Display for ContentType
impl Display for ContentType
Source§impl From<ContentType> for NonNegativeInteger
impl From<ContentType> for NonNegativeInteger
Source§fn from(original: ContentType) -> Self
fn from(original: ContentType) -> Self
Converts to this type from the input type.
Source§impl From<NonNegativeInteger> for ContentType
impl From<NonNegativeInteger> for ContentType
Source§fn from(original: NonNegativeInteger) -> ContentType
fn from(original: NonNegativeInteger) -> ContentType
Converts to this type from the input type.
Source§impl Hash for ContentType
impl Hash for ContentType
Source§impl PartialEq for ContentType
impl PartialEq for ContentType
Source§impl Tlv for ContentType
impl Tlv for ContentType
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 ContentType
impl TlvDecode for ContentType
Source§impl TlvEncode for ContentType
impl TlvEncode for ContentType
impl Eq for ContentType
impl StructuralPartialEq for ContentType
Auto Trait Implementations§
impl Freeze for ContentType
impl RefUnwindSafe for ContentType
impl Send for ContentType
impl Sync for ContentType
impl Unpin for ContentType
impl UnwindSafe for ContentType
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