pub enum NnsNodeOperatorHostError {
Show 23 variants
UnsupportedNetwork {
network: String,
},
MissingCache {
path: PathBuf,
},
ReadCache {
path: PathBuf,
source: Error,
},
ParseCache {
path: PathBuf,
source: Error,
},
SerializeCache {
path: PathBuf,
source: Error,
},
UnsupportedCacheSchemaVersion {
version: u32,
expected: u32,
},
NetworkMismatch {
requested: String,
actual: String,
},
RefreshAlreadyInProgress {
path: PathBuf,
started_at_unix_ms: u64,
},
CreateCacheDirectory {
path: PathBuf,
source: Error,
},
CreateRefreshLock {
path: PathBuf,
source: Error,
},
ReadRefreshLock {
path: PathBuf,
source: Error,
},
ParseRefreshLock {
path: PathBuf,
source: Error,
},
WriteRefreshLock {
path: PathBuf,
source: Error,
},
RemoveRefreshLock {
path: PathBuf,
source: Error,
},
NnsQuery(RegistryFetchError),
WriteCacheTemp {
path: PathBuf,
source: Error,
},
SyncCacheTemp {
path: PathBuf,
source: Error,
},
ReplaceCache {
temp_path: PathBuf,
cache_path: PathBuf,
source: Error,
},
SyncCacheDirectory {
path: PathBuf,
source: Error,
},
WriteRefreshOutput {
path: PathBuf,
source: Error,
},
SyncRefreshOutput {
path: PathBuf,
source: Error,
},
NodeOperatorNotFound {
input: String,
},
AmbiguousNodeOperatorPrefix {
prefix: String,
matches: Vec<String>,
},
}Expand description
NnsNodeOperatorHostError
Variants§
UnsupportedNetwork
MissingCache
ReadCache
ParseCache
SerializeCache
UnsupportedCacheSchemaVersion
NetworkMismatch
RefreshAlreadyInProgress
CreateCacheDirectory
CreateRefreshLock
ReadRefreshLock
ParseRefreshLock
WriteRefreshLock
RemoveRefreshLock
NnsQuery(RegistryFetchError)
WriteCacheTemp
SyncCacheTemp
ReplaceCache
SyncCacheDirectory
WriteRefreshOutput
SyncRefreshOutput
NodeOperatorNotFound
AmbiguousNodeOperatorPrefix
Trait Implementations§
Source§impl Debug for NnsNodeOperatorHostError
impl Debug for NnsNodeOperatorHostError
Source§impl Display for NnsNodeOperatorHostError
impl Display for NnsNodeOperatorHostError
Source§impl Error for NnsNodeOperatorHostError
impl Error for NnsNodeOperatorHostError
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<RegistryFetchError> for NnsNodeOperatorHostError
impl From<RegistryFetchError> for NnsNodeOperatorHostError
Source§fn from(source: RegistryFetchError) -> Self
fn from(source: RegistryFetchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NnsNodeOperatorHostError
impl !UnwindSafe for NnsNodeOperatorHostError
impl Freeze for NnsNodeOperatorHostError
impl Send for NnsNodeOperatorHostError
impl Sync for NnsNodeOperatorHostError
impl Unpin for NnsNodeOperatorHostError
impl UnsafeUnpin for NnsNodeOperatorHostError
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