pub enum EnvironmentError {
Unavailable(String),
Declined(String),
}Expand description
Why the environment could not do what it was asked.
Variants§
The network, or the other side, failed.
Declined(String)
The user, or whatever stands in for them, declined or could not be reached.
Trait Implementations§
Source§impl Clone for EnvironmentError
impl Clone for EnvironmentError
Source§impl Debug for EnvironmentError
impl Debug for EnvironmentError
Source§impl Display for EnvironmentError
impl Display for EnvironmentError
impl Eq for EnvironmentError
Source§impl Error for EnvironmentError
impl Error for EnvironmentError
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<EnvironmentError> for AuthorizeError
impl From<EnvironmentError> for AuthorizeError
Source§fn from(source: EnvironmentError) -> Self
fn from(source: EnvironmentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnvironmentError
impl PartialEq for EnvironmentError
impl StructuralPartialEq for EnvironmentError
Auto Trait Implementations§
impl Freeze for EnvironmentError
impl RefUnwindSafe for EnvironmentError
impl Send for EnvironmentError
impl Sync for EnvironmentError
impl Unpin for EnvironmentError
impl UnsafeUnpin for EnvironmentError
impl UnwindSafe for EnvironmentError
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