#[repr(C)]pub enum PamojaSessionRole {
Initiator = 0,
Responder = 1,
}Expand description
Which side of a session a device is on.
The two devices must choose opposite roles. The role decides the order the public keys are mixed in and which direction each side tags its messages with, so a session where both sides claim the same role will not open anything.
Variants§
Trait Implementations§
Source§impl Clone for PamojaSessionRole
impl Clone for PamojaSessionRole
Source§fn clone(&self) -> PamojaSessionRole
fn clone(&self) -> PamojaSessionRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaSessionRole
Source§impl Debug for PamojaSessionRole
impl Debug for PamojaSessionRole
impl Eq for PamojaSessionRole
Source§impl PartialEq for PamojaSessionRole
impl PartialEq for PamojaSessionRole
Source§fn eq(&self, other: &PamojaSessionRole) -> bool
fn eq(&self, other: &PamojaSessionRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaSessionRole
Auto Trait Implementations§
impl Freeze for PamojaSessionRole
impl RefUnwindSafe for PamojaSessionRole
impl Send for PamojaSessionRole
impl Sync for PamojaSessionRole
impl Unpin for PamojaSessionRole
impl UnsafeUnpin for PamojaSessionRole
impl UnwindSafe for PamojaSessionRole
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