pub enum Frame {
Initialize(Vec<u8>),
PeerInitialize(Vec<u8>, Vec<u8>),
Check([u8; 12], Vec<u8>),
KeyAgreement(UuidWrapper),
}Expand description
A moshpit frame.
Variants§
Initialize(Vec<u8>)
An initialization frame from moshpit.
PeerInitialize(Vec<u8>, Vec<u8>)
A peer initialization frame from moshpits.
Check([u8; 12], Vec<u8>)
A check message from moshpit.
KeyAgreement(UuidWrapper)
A key agreement message from moshpits.
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Frame
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Frame
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Ord for Frame
impl Ord for Frame
Source§impl PartialOrd for Frame
impl PartialOrd for Frame
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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