pub enum Error {
Show 25 variants
PolicyError(Arc<Error>),
StringError(String),
CryptoError(Arc<Error>),
NoSuchUser(String),
NoSuchAccount(String),
NoSuchServiceAccount(String),
NoSuchTempAccount(String),
NoSuchGroup(String),
NoSuchPolicy,
PolicyInUse,
GroupNotEmpty,
InvalidArgument,
IamSysNotInitialized,
InvalidAccessKeyLength,
InvalidSecretKeyLength,
ContainsReservedChars,
GroupNameContainsReservedChars,
AccessKeyAlreadyExists,
IAMActionNotAllowed,
NoSecretKeyWithAccessKey,
NoAccessKeyWithSecretKey,
PolicyTooLarge,
ConfigNotFound,
Io(Error),
IamSysAlreadyInitialized,
}Variants§
PolicyError(Arc<Error>)
StringError(String)
CryptoError(Arc<Error>)
NoSuchUser(String)
NoSuchAccount(String)
NoSuchServiceAccount(String)
NoSuchTempAccount(String)
NoSuchGroup(String)
NoSuchPolicy
PolicyInUse
GroupNotEmpty
InvalidArgument
IamSysNotInitialized
InvalidAccessKeyLength
InvalidSecretKeyLength
ContainsReservedChars
GroupNameContainsReservedChars
AccessKeyAlreadyExists
IAMActionNotAllowed
NoSecretKeyWithAccessKey
NoAccessKeyWithSecretKey
PolicyTooLarge
ConfigNotFound
Io(Error)
IamSysAlreadyInitialized
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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 Error
impl From<Error> for Error
Source§fn from(e: PolicyError) -> Self
fn from(e: PolicyError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§impl From<Error> for Error
Deliberately a flat, exhaustive mapping rather than a wrapper variant
(backlog#1845 step 8 verdict): folding iam::Error into a
Policy(Arc<policy::Error>) wrapper would leave ~140 production
construction/match sites across iam and the admin handlers to migrate in
auth-critical code, and a type alias is blocked by the orphan rule (iam’s
From<IamStorageError> / io conversions cannot be implemented for a
foreign type). The drift risk the fold aimed at is already covered by the
compiler: this match has no catch-all, so any new policy variant fails the
build here until mapped, and policy_to_iam_mapping_preserves_messages
pins that every arm keeps the rendered message intact.
impl From<Error> for Error
Deliberately a flat, exhaustive mapping rather than a wrapper variant
(backlog#1845 step 8 verdict): folding iam::Error into a
Policy(Arc<policy::Error>) wrapper would leave ~140 production
construction/match sites across iam and the admin handlers to migrate in
auth-critical code, and a type alias is blocked by the orphan rule (iam’s
From<IamStorageError> / io conversions cannot be implemented for a
foreign type). The drift risk the fold aimed at is already covered by the
compiler: this match has no catch-all, so any new policy variant fails the
build here until mapped, and policy_to_iam_mapping_preserves_messages
pins that every arm keeps the rendered message intact.
Source§impl From<Error> for MfaServiceError
impl From<Error> for MfaServiceError
Source§impl From<StorageError> for Error
impl From<StorageError> for Error
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const ArcInner<Error> is !null: UnsafeUnpin,
PhantomData<ArcInner<Error>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Error> is !null: UnsafeUnpin,
PhantomData<ArcInner<Error>>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more