pub enum NetworkIdentityError {
Show 19 variants
InvalidEnvironmentName {
name: String,
},
PublicIcEnrollment {
environment: String,
},
InvalidFingerprint,
FingerprintMismatch {
expected: String,
observed: String,
},
RootKeyNotRegular {
path: PathBuf,
},
InvalidRootKeyDer {
reason: String,
},
MissingProfile {
path: PathBuf,
},
ProfileNotRegular {
path: PathBuf,
},
MissingAuthority {
path: PathBuf,
},
AuthorityNotRegular {
path: PathBuf,
},
ProfileConflict {
environment: String,
existing: CanonicalNetworkId,
requested: CanonicalNetworkId,
},
TrustAnchorConflict {
path: PathBuf,
},
ContradictoryAuthority {
reason: String,
},
Decode {
path: PathBuf,
source: Error,
},
Encode(Error),
Io {
path: PathBuf,
source: Error,
},
IcpConfig(IcpConfigError),
Clock(SystemTimeError),
UnsupportedPlatform(&'static str),
}Expand description
NetworkIdentityError
Typed failure while enrolling or resolving a canonical network identity.
Variants§
InvalidEnvironmentName
PublicIcEnrollment
InvalidFingerprint
FingerprintMismatch
RootKeyNotRegular
InvalidRootKeyDer
MissingProfile
ProfileNotRegular
MissingAuthority
AuthorityNotRegular
ProfileConflict
TrustAnchorConflict
ContradictoryAuthority
Decode
Encode(Error)
Io
IcpConfig(IcpConfigError)
Clock(SystemTimeError)
UnsupportedPlatform(&'static str)
Trait Implementations§
Source§impl Debug for NetworkIdentityError
impl Debug for NetworkIdentityError
Source§impl Display for NetworkIdentityError
impl Display for NetworkIdentityError
Source§impl Error for NetworkIdentityError
impl Error for NetworkIdentityError
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 NetworkIdentityError
impl From<Error> for NetworkIdentityError
Source§impl From<IcpConfigError> for NetworkIdentityError
impl From<IcpConfigError> for NetworkIdentityError
Source§fn from(source: IcpConfigError) -> Self
fn from(source: IcpConfigError) -> Self
Converts to this type from the input type.
Source§impl From<NetworkIdentityError> for FleetCatalogError
impl From<NetworkIdentityError> for FleetCatalogError
Source§fn from(source: NetworkIdentityError) -> Self
fn from(source: NetworkIdentityError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for NetworkIdentityError
impl From<SystemTimeError> for NetworkIdentityError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkIdentityError
impl !UnwindSafe for NetworkIdentityError
impl Freeze for NetworkIdentityError
impl Send for NetworkIdentityError
impl Sync for NetworkIdentityError
impl Unpin for NetworkIdentityError
impl UnsafeUnpin for NetworkIdentityError
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