pub struct MessageInstance {
pub m: u32,
pub hashes: Vec<MessageHash>,
pub recipe: Option<Recipe>,
}Fields§
§m: u32§hashes: Vec<MessageHash>§recipe: Option<Recipe>Implementations§
Source§impl MessageInstance
impl MessageInstance
Sourcepub fn parse(header: &[u8]) -> Result<MessageInstance>
pub fn parse(header: &[u8]) -> Result<MessageInstance>
Parses a single Message-Instance header value (without the field name).
Source§impl MessageInstance
impl MessageInstance
pub fn from_message( message: &AuthenticatedMessage<'_>, original: Option<&AuthenticatedMessage<'_>>, ) -> Option<Self>
pub fn from_recipe( message: &AuthenticatedMessage<'_>, recipe: Option<Recipe>, ) -> Option<Self>
Trait Implementations§
Source§impl Clone for MessageInstance
impl Clone for MessageInstance
Source§fn clone(&self) -> MessageInstance
fn clone(&self) -> MessageInstance
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 Debug for MessageInstance
impl Debug for MessageInstance
Source§impl Default for MessageInstance
impl Default for MessageInstance
Source§fn default() -> MessageInstance
fn default() -> MessageInstance
Returns the “default value” for a type. Read more
Source§impl Display for MessageInstance
impl Display for MessageInstance
impl Eq for MessageInstance
Source§impl HeaderWriter for MessageInstance
impl HeaderWriter for MessageInstance
Source§impl PartialEq for MessageInstance
impl PartialEq for MessageInstance
Source§fn eq(&self, other: &MessageInstance) -> bool
fn eq(&self, other: &MessageInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageInstance
Auto Trait Implementations§
impl Freeze for MessageInstance
impl RefUnwindSafe for MessageInstance
impl Send for MessageInstance
impl Sync for MessageInstance
impl Unpin for MessageInstance
impl UnsafeUnpin for MessageInstance
impl UnwindSafe for MessageInstance
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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