pub enum NarrowWaistPacket {
Request {
hbfi: HBFI,
nonce: Nonce,
},
Response {
hbfi: HBFI,
nonce: Nonce,
signature: Signature,
data: ResponseData,
},
}Variants§
Implementations§
Source§impl NarrowWaistPacket
impl NarrowWaistPacket
pub fn request(hbfi: HBFI) -> Result<Self>
pub fn response( response_sid: PrivateIdentityInterface, hbfi: HBFI, data: Vec<u8>, ) -> Result<Self>
pub fn verify(&self) -> Result<bool>
pub fn data(&self, request_sid: PrivateIdentityInterface) -> Result<Vec<u8>>
pub fn as_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(data: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl Clone for NarrowWaistPacket
impl Clone for NarrowWaistPacket
Source§fn clone(&self) -> NarrowWaistPacket
fn clone(&self) -> NarrowWaistPacket
Returns a duplicate of the value. Read more
1.0.0 · 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 NarrowWaistPacket
impl Debug for NarrowWaistPacket
Source§impl Hash for NarrowWaistPacket
impl Hash for NarrowWaistPacket
Source§impl Ord for NarrowWaistPacket
impl Ord for NarrowWaistPacket
Source§fn cmp(&self, other: &NarrowWaistPacket) -> Ordering
fn cmp(&self, other: &NarrowWaistPacket) -> Ordering
1.21.0 · 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
Source§impl PartialEq for NarrowWaistPacket
impl PartialEq for NarrowWaistPacket
Source§impl PartialOrd for NarrowWaistPacket
impl PartialOrd for NarrowWaistPacket
impl Eq for NarrowWaistPacket
impl StructuralPartialEq for NarrowWaistPacket
Auto Trait Implementations§
impl Freeze for NarrowWaistPacket
impl RefUnwindSafe for NarrowWaistPacket
impl Send for NarrowWaistPacket
impl Sync for NarrowWaistPacket
impl Unpin for NarrowWaistPacket
impl UnwindSafe for NarrowWaistPacket
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