pub enum Compartment {
Public,
Private,
}Expand description
Which compartment an operation targets.
Wire encoding (matches the FFI compartment parameter):
0— public, identity-indexed, signed1— private, key-id-indexed, optionally hardware-backed
Variants§
Implementations§
Source§impl Compartment
impl Compartment
Sourcepub fn from_wire(value: u32) -> Result<Self>
pub fn from_wire(value: u32) -> Result<Self>
Decode the wire value used by the FFI. Unknown values return
crate::error::Error::InvalidCompartment.
Trait Implementations§
Source§impl Clone for Compartment
impl Clone for Compartment
Source§fn clone(&self) -> Compartment
fn clone(&self) -> Compartment
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 Compartment
Source§impl Debug for Compartment
impl Debug for Compartment
impl Eq for Compartment
Source§impl Hash for Compartment
impl Hash for Compartment
Source§impl PartialEq for Compartment
impl PartialEq for Compartment
Source§fn eq(&self, other: &Compartment) -> bool
fn eq(&self, other: &Compartment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Compartment
Auto Trait Implementations§
impl Freeze for Compartment
impl RefUnwindSafe for Compartment
impl Send for Compartment
impl Sync for Compartment
impl Unpin for Compartment
impl UnsafeUnpin for Compartment
impl UnwindSafe for Compartment
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