Enum ProvisionOutcome
pub enum ProvisionOutcome {
Provisioned {
handle: String,
},
BadSession,
PossessionFailed,
Rejected,
ServerError,
}Expand description
The outcome of a provisioning attempt.
Variants§
Provisioned
The device was bound; carries the directory handle it was bound under.
BadSession
The session token was unknown (or expired).
PossessionFailed
The signature did not prove possession of the identity key.
Rejected
Trust on first use refused it: the handle is already bound to a different identity key.
ServerError
The server could not process the request (a backend failure). Transient; nothing was bound.
Trait Implementations§
§impl Clone for ProvisionOutcome
impl Clone for ProvisionOutcome
§fn clone(&self) -> ProvisionOutcome
fn clone(&self) -> ProvisionOutcome
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 more§impl Debug for ProvisionOutcome
impl Debug for ProvisionOutcome
impl Eq for ProvisionOutcome
§impl PartialEq for ProvisionOutcome
impl PartialEq for ProvisionOutcome
§fn eq(&self, other: &ProvisionOutcome) -> bool
fn eq(&self, other: &ProvisionOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProvisionOutcome
Auto Trait Implementations§
impl Freeze for ProvisionOutcome
impl RefUnwindSafe for ProvisionOutcome
impl Send for ProvisionOutcome
impl Sync for ProvisionOutcome
impl Unpin for ProvisionOutcome
impl UnsafeUnpin for ProvisionOutcome
impl UnwindSafe for ProvisionOutcome
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