pub enum ResponseData {
ClearText {
data: Box<Data>,
},
CypherText {
data: Box<Data>,
tag: Tag,
},
}Variants§
Implementations§
Source§impl ResponseData
impl ResponseData
pub fn as_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(data: &[u8]) -> Result<Self>
pub fn insert( response_sid: PrivateIdentityInterface, request_pid: PublicIdentityInterface, data: Vec<u8>, nonce: Nonce, ) -> Result<Self>
pub fn extract( &self, request_sid: PrivateIdentityInterface, request_pid: PublicIdentityInterface, response_pid: PublicIdentity, nonce: Nonce, ) -> Result<Vec<u8>>
Trait Implementations§
Source§impl Clone for ResponseData
impl Clone for ResponseData
Source§fn clone(&self) -> ResponseData
fn clone(&self) -> ResponseData
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 ResponseData
impl Debug for ResponseData
Source§impl Display for ResponseData
impl Display for ResponseData
Source§impl Hash for ResponseData
impl Hash for ResponseData
Source§impl Ord for ResponseData
impl Ord for ResponseData
Source§fn cmp(&self, other: &ResponseData) -> Ordering
fn cmp(&self, other: &ResponseData) -> 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 ResponseData
impl PartialEq for ResponseData
Source§impl PartialOrd for ResponseData
impl PartialOrd for ResponseData
impl Eq for ResponseData
impl StructuralPartialEq for ResponseData
Auto Trait Implementations§
impl Freeze for ResponseData
impl RefUnwindSafe for ResponseData
impl Send for ResponseData
impl Sync for ResponseData
impl Unpin for ResponseData
impl UnwindSafe for ResponseData
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