pub enum NnsDataCenterHostError {
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,
},
DataCenterNotFound {
input: String,
},
AmbiguousDataCenterPrefix {
prefix: String,
matches: Vec<String>,
},
}Expand description
NnsDataCenterHostError
Variants§
UnsupportedNetwork
MissingCache
ReadCache
ParseCache
SerializeCache
UnsupportedCacheSchemaVersion
NetworkMismatch
RefreshAlreadyInProgress
CreateCacheDirectory
CreateRefreshLock
ReadRefreshLock
ParseRefreshLock
WriteRefreshLock
RemoveRefreshLock
NnsQuery(RegistryFetchError)
WriteCacheTemp
SyncCacheTemp
ReplaceCache
SyncCacheDirectory
WriteRefreshOutput
SyncRefreshOutput
DataCenterNotFound
AmbiguousDataCenterPrefix
Trait Implementations§
Source§impl Debug for NnsDataCenterHostError
impl Debug for NnsDataCenterHostError
Source§impl Display for NnsDataCenterHostError
impl Display for NnsDataCenterHostError
Source§impl Error for NnsDataCenterHostError
impl Error for NnsDataCenterHostError
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<NnsDataCenterHostError> for NnsTopologyHostError
impl From<NnsDataCenterHostError> for NnsTopologyHostError
Source§fn from(source: NnsDataCenterHostError) -> Self
fn from(source: NnsDataCenterHostError) -> Self
Converts to this type from the input type.
Source§impl From<RegistryFetchError> for NnsDataCenterHostError
impl From<RegistryFetchError> for NnsDataCenterHostError
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 NnsDataCenterHostError
impl !UnwindSafe for NnsDataCenterHostError
impl Freeze for NnsDataCenterHostError
impl Send for NnsDataCenterHostError
impl Sync for NnsDataCenterHostError
impl Unpin for NnsDataCenterHostError
impl UnsafeUnpin for NnsDataCenterHostError
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