pub struct EnvironmentError {
pub code: EnvironmentErrorCode,
pub message: String,
}Expand description
A refusal: its code and a sentence saying what was refused.
Fields§
§code: EnvironmentErrorCode§message: StringImplementations§
Source§impl EnvironmentError
impl EnvironmentError
pub fn new(code: EnvironmentErrorCode, message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for EnvironmentError
impl Clone for EnvironmentError
Source§fn clone(&self) -> EnvironmentError
fn clone(&self) -> EnvironmentError
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 EnvironmentError
impl Debug for EnvironmentError
Source§impl Display for EnvironmentError
impl Display for EnvironmentError
Source§impl PartialEq for EnvironmentError
impl PartialEq for EnvironmentError
impl Eq 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