pub struct MessagePayload<'a> {
pub value: AnyOctetString<'a>,
}Fields§
§value: AnyOctetString<'a>Implementations§
Source§impl<'a> MessagePayload<'a>
impl<'a> MessagePayload<'a>
Sourcepub fn into_parts(self) -> MessagePayloadParts<'a>
pub fn into_parts(self) -> MessagePayloadParts<'a>
Converts Self into its parts.
Sourcepub fn from_parts(parts: MessagePayloadParts<'a>) -> MessagePayload<'a>
pub fn from_parts(parts: MessagePayloadParts<'a>) -> MessagePayload<'a>
Source§impl<'a> MessagePayload<'a>
impl<'a> MessagePayload<'a>
pub const fn new(value: AnyOctetString<'a>) -> MessagePayload<'a>
Trait Implementations§
Source§impl<'a> Clone for MessagePayload<'a>
impl<'a> Clone for MessagePayload<'a>
Source§fn clone(&self) -> MessagePayload<'a>
fn clone(&self) -> MessagePayload<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessagePayload<'a>
impl<'a> Debug for MessagePayload<'a>
Source§impl<'a> DecodeWithLength<'a> for MessagePayload<'a>
impl<'a> DecodeWithLength<'a> for MessagePayload<'a>
Source§fn decode(
src: &'a [u8],
length: usize,
) -> Result<(MessagePayload<'a>, usize), DecodeError>
fn decode( src: &'a [u8], length: usize, ) -> Result<(MessagePayload<'a>, usize), DecodeError>
Decode a value from a slice, with a specified length
Source§impl<'a> Default for MessagePayload<'a>
impl<'a> Default for MessagePayload<'a>
Source§fn default() -> MessagePayload<'a>
fn default() -> MessagePayload<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Encode for MessagePayload<'a>
impl<'a> Encode for MessagePayload<'a>
impl<'a> Eq for MessagePayload<'a>
Source§impl<'a> From<AnyOctetString<'a>> for MessagePayload<'a>
impl<'a> From<AnyOctetString<'a>> for MessagePayload<'a>
Source§fn from(value: AnyOctetString<'a>) -> MessagePayload<'a>
fn from(value: AnyOctetString<'a>) -> MessagePayload<'a>
Converts to this type from the input type.
Source§impl<'a> From<MessagePayload<'a>> for AnyOctetString<'a>
impl<'a> From<MessagePayload<'a>> for AnyOctetString<'a>
Source§fn from(value: MessagePayload<'a>) -> AnyOctetString<'a>
fn from(value: MessagePayload<'a>) -> AnyOctetString<'a>
Converts to this type from the input type.
Source§impl<'a> Hash for MessagePayload<'a>
impl<'a> Hash for MessagePayload<'a>
Source§impl<'a> Ord for MessagePayload<'a>
impl<'a> Ord for MessagePayload<'a>
Source§fn cmp(&self, other: &MessagePayload<'a>) -> Ordering
fn cmp(&self, other: &MessagePayload<'a>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialEq for MessagePayload<'a>
impl<'a> PartialEq for MessagePayload<'a>
Source§impl<'a> PartialOrd for MessagePayload<'a>
impl<'a> PartialOrd for MessagePayload<'a>
impl<'a> StructuralPartialEq for MessagePayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for MessagePayload<'a>
impl<'a> RefUnwindSafe for MessagePayload<'a>
impl<'a> Send for MessagePayload<'a>
impl<'a> Sync for MessagePayload<'a>
impl<'a> Unpin for MessagePayload<'a>
impl<'a> UnsafeUnpin for MessagePayload<'a>
impl<'a> UnwindSafe for MessagePayload<'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