pub enum RuntimeOpenError {
NotBootstrapped,
NotAdmitted(StableKey),
AlreadyOpen {
id: u64,
},
Directory(DirectoryError),
}Expand description
A key cannot be opened until current host admission succeeds.
Variants§
NotBootstrapped
Bootstrap has not committed current authority.
NotAdmitted(StableKey)
The key is absent from the current admitted declarations.
AlreadyOpen
An exclusive lease for this allocation is already alive.
Directory(DirectoryError)
The directory refused opening.
Trait Implementations§
Source§impl Debug for RuntimeOpenError
impl Debug for RuntimeOpenError
Source§impl Display for RuntimeOpenError
impl Display for RuntimeOpenError
Source§impl Error for RuntimeOpenError
impl Error for RuntimeOpenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for RuntimeOpenError
impl From<Error> for RuntimeOpenError
Source§fn from(source: DirectoryError) -> Self
fn from(source: DirectoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeOpenError
impl RefUnwindSafe for RuntimeOpenError
impl Send for RuntimeOpenError
impl Sync for RuntimeOpenError
impl Unpin for RuntimeOpenError
impl UnsafeUnpin for RuntimeOpenError
impl UnwindSafe for RuntimeOpenError
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