pub enum EnrollOutcome {
Enrolled {
host_id: String,
},
InvalidCode,
AlreadyPaired {
host_id: String,
},
Invalid(String),
}Expand description
The outcome of Hosts::enroll.
Variants§
Enrolled
InvalidCode
Unknown, expired or already used: one answer for all three.
AlreadyPaired
A host with this public key is paired already; the code is not used.
Invalid(String)
The enrollment itself is malformed (why); the code is not used.
Trait Implementations§
Source§impl Clone for EnrollOutcome
impl Clone for EnrollOutcome
Source§impl Debug for EnrollOutcome
impl Debug for EnrollOutcome
Source§impl PartialEq for EnrollOutcome
impl PartialEq for EnrollOutcome
impl StructuralPartialEq for EnrollOutcome
Auto Trait Implementations§
impl Freeze for EnrollOutcome
impl RefUnwindSafe for EnrollOutcome
impl Send for EnrollOutcome
impl Sync for EnrollOutcome
impl Unpin for EnrollOutcome
impl UnsafeUnpin for EnrollOutcome
impl UnwindSafe for EnrollOutcome
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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