pub struct MrfEnvelope { /* private fields */ }Implementations§
Source§impl MrfEnvelope
impl MrfEnvelope
pub fn new( protocol: MrfProtocolCapabilities, payload: Vec<u8>, ) -> Result<Self, MrfEnvelopeError>
pub const fn protocol(&self) -> MrfProtocolCapabilities
pub fn payload(&self) -> &[u8] ⓘ
pub fn encode(&self) -> Result<Vec<u8>, MrfEnvelopeError>
pub fn decode( data: &[u8], supported: MrfProtocolCapabilities, ) -> Result<Self, MrfEnvelopeError>
Trait Implementations§
Source§impl Clone for MrfEnvelope
impl Clone for MrfEnvelope
Source§impl Debug for MrfEnvelope
impl Debug for MrfEnvelope
impl Eq for MrfEnvelope
Source§impl PartialEq for MrfEnvelope
impl PartialEq for MrfEnvelope
impl StructuralPartialEq for MrfEnvelope
Auto Trait Implementations§
impl Freeze for MrfEnvelope
impl RefUnwindSafe for MrfEnvelope
impl Send for MrfEnvelope
impl Sync for MrfEnvelope
impl Unpin for MrfEnvelope
impl UnsafeUnpin for MrfEnvelope
impl UnwindSafe for MrfEnvelope
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§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.