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>) -> Self
pub fn from_parts(parts: MessagePayloadParts<'a>) -> Self
Source§impl<'a> MessagePayload<'a>
impl<'a> MessagePayload<'a>
pub const fn new(value: AnyOctetString<'a>) -> Self
Trait Implementations§
Source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for MessagePayload<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for MessagePayload<'a>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§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§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§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>
Source§impl<'a> Encode for MessagePayload<'a>
Available on crate feature alloc only.
impl<'a> Encode for MessagePayload<'a>
Available on crate feature
alloc only.Source§impl<'a> From<AnyOctetString<'a>> for MessagePayload<'a>
impl<'a> From<AnyOctetString<'a>> for MessagePayload<'a>
Source§fn from(value: AnyOctetString<'a>) -> Self
fn from(value: AnyOctetString<'a>) -> Self
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>) -> Self
fn from(value: MessagePayload<'a>) -> Self
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§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>
Source§impl<'a> Serialize for MessagePayload<'a>
impl<'a> Serialize for MessagePayload<'a>
impl<'a> Eq 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> UnwindSafe for MessagePayload<'a>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)