pub enum NnsNodeHostError {
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,
},
NodeNotFound {
input: String,
},
AmbiguousNodePrefix {
prefix: String,
matches: Vec<String>,
},
}Expand description
NnsNodeHostError
Variants§
UnsupportedNetwork
MissingCache
ReadCache
ParseCache
SerializeCache
UnsupportedCacheSchemaVersion
NetworkMismatch
RefreshAlreadyInProgress
CreateCacheDirectory
CreateRefreshLock
ReadRefreshLock
ParseRefreshLock
WriteRefreshLock
RemoveRefreshLock
NnsQuery(RegistryFetchError)
WriteCacheTemp
SyncCacheTemp
ReplaceCache
SyncCacheDirectory
WriteRefreshOutput
SyncRefreshOutput
NodeNotFound
AmbiguousNodePrefix
Trait Implementations§
Source§impl Debug for NnsNodeHostError
impl Debug for NnsNodeHostError
Source§impl Display for NnsNodeHostError
impl Display for NnsNodeHostError
Source§impl Error for NnsNodeHostError
impl Error for NnsNodeHostError
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 NnsNodeHostError
impl From<RegistryFetchError> for NnsNodeHostError
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 NnsNodeHostError
impl !UnwindSafe for NnsNodeHostError
impl Freeze for NnsNodeHostError
impl Send for NnsNodeHostError
impl Sync for NnsNodeHostError
impl Unpin for NnsNodeHostError
impl UnsafeUnpin for NnsNodeHostError
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