pub struct CredentialsError {
pub message: String,
}Expand description
Represents an Error that has occured during the fetching Credentials Phase.
This generally is an error message from one of our underlying libraries, however we wrap it up with this type so we can export one single error type.
Fields§
§message: StringThe underlying error message for the credentials error.
Implementations§
Source§impl CredentialsError
impl CredentialsError
Sourcepub fn new<S>(message: S) -> CredentialsErrorwhere
S: ToString,
pub fn new<S>(message: S) -> CredentialsErrorwhere
S: ToString,
Creates a new Credentials Error.
message- The Error message for this CredentialsError.
Trait Implementations§
Source§impl Clone for CredentialsError
impl Clone for CredentialsError
Source§fn clone(&self) -> CredentialsError
fn clone(&self) -> CredentialsError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialsError
impl Debug for CredentialsError
Source§impl Display for CredentialsError
impl Display for CredentialsError
Source§impl Error for CredentialsError
impl Error for CredentialsError
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 CredentialsError
impl From<Error> for CredentialsError
Source§fn from(err: IoError) -> CredentialsError
fn from(err: IoError) -> CredentialsError
Converts to this type from the input type.
Source§impl From<Error> for CredentialsError
impl From<Error> for CredentialsError
Source§fn from(err: HyperError) -> CredentialsError
fn from(err: HyperError) -> CredentialsError
Converts to this type from the input type.
Source§impl From<Error> for CredentialsError
impl From<Error> for CredentialsError
Source§fn from(err: Error) -> CredentialsError
fn from(err: Error) -> CredentialsError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for CredentialsError
impl From<FromUtf8Error> for CredentialsError
Source§fn from(err: FromUtf8Error) -> CredentialsError
fn from(err: FromUtf8Error) -> CredentialsError
Converts to this type from the input type.
Source§impl From<ParseError> for CredentialsError
impl From<ParseError> for CredentialsError
Source§fn from(err: ParseError) -> CredentialsError
fn from(err: ParseError) -> CredentialsError
Converts to this type from the input type.
Source§impl From<VarError> for CredentialsError
impl From<VarError> for CredentialsError
Source§fn from(err: VarError) -> CredentialsError
fn from(err: VarError) -> CredentialsError
Converts to this type from the input type.
Source§impl PartialEq for CredentialsError
impl PartialEq for CredentialsError
impl StructuralPartialEq for CredentialsError
Auto Trait Implementations§
impl Freeze for CredentialsError
impl RefUnwindSafe for CredentialsError
impl Send for CredentialsError
impl Sync for CredentialsError
impl Unpin for CredentialsError
impl UnsafeUnpin for CredentialsError
impl UnwindSafe for CredentialsError
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