pub enum DestinationType {
Single,
Group,
Plain,
}Expand description
Destination type.
Variants§
Single
Point-to-point, encrypted to recipient’s key.
Group
Multicast with pre-shared key.
Plain
Unencrypted.
Implementations§
Source§impl DestinationType
impl DestinationType
Sourcepub fn to_wire_constant(self) -> u8
pub fn to_wire_constant(self) -> u8
Convert to the wire constant used in rns-core.
Sourcepub fn from_wire_constant(val: u8) -> Option<DestinationType>
pub fn from_wire_constant(val: u8) -> Option<DestinationType>
Convert from the wire constant.
Trait Implementations§
Source§impl Clone for DestinationType
impl Clone for DestinationType
Source§fn clone(&self) -> DestinationType
fn clone(&self) -> DestinationType
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 DestinationType
impl Debug for DestinationType
Source§impl PartialEq for DestinationType
impl PartialEq for DestinationType
impl Copy for DestinationType
impl Eq for DestinationType
impl StructuralPartialEq for DestinationType
Auto Trait Implementations§
impl Freeze for DestinationType
impl RefUnwindSafe for DestinationType
impl Send for DestinationType
impl Sync for DestinationType
impl Unpin for DestinationType
impl UnwindSafe for DestinationType
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