pub struct CredentialsLoadingError {
user_id: UserId,
error: Error,
}
Expand description
An error that may occur when loading credentials for a SystemUserId
.
Alongside an Error
contains a target [UserId
] for which the error
occurred.
Fields§
§user_id: UserId
§error: Error
Implementations§
Source§impl CredentialsLoadingError
impl CredentialsLoadingError
Sourcepub fn new(user_id: UserId, error: Error) -> Self
pub fn new(user_id: UserId, error: Error) -> Self
Creates a new CredentialsLoadingError
.
Sourcepub fn get_user_id(&self) -> &UserId
pub fn get_user_id(&self) -> &UserId
Returns a reference to the [UserId
].
Trait Implementations§
Source§impl Debug for CredentialsLoadingError
impl Debug for CredentialsLoadingError
Auto Trait Implementations§
impl Freeze for CredentialsLoadingError
impl !RefUnwindSafe for CredentialsLoadingError
impl Send for CredentialsLoadingError
impl Sync for CredentialsLoadingError
impl Unpin for CredentialsLoadingError
impl !UnwindSafe for CredentialsLoadingError
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
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 more