pub enum InvalidEnvironment {
TooLong,
RestrictedName,
BadCharacters,
}
Expand description
An error indicating invalid environment.
Variants§
TooLong
The environment name was too long
RestrictedName
Environment name is restricted
BadCharacters
The environment contained invalid characters
Trait Implementations§
source§impl Clone for InvalidEnvironment
impl Clone for InvalidEnvironment
source§fn clone(&self) -> InvalidEnvironment
fn clone(&self) -> InvalidEnvironment
Returns a copy 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 InvalidEnvironment
impl Debug for InvalidEnvironment
source§impl Display for InvalidEnvironment
impl Display for InvalidEnvironment
source§impl Error for InvalidEnvironment
impl Error for InvalidEnvironment
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<InvalidEnvironment> for InvalidEnvironment
impl PartialEq<InvalidEnvironment> for InvalidEnvironment
source§fn eq(&self, other: &InvalidEnvironment) -> bool
fn eq(&self, other: &InvalidEnvironment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InvalidEnvironment
Auto Trait Implementations§
impl RefUnwindSafe for InvalidEnvironment
impl Send for InvalidEnvironment
impl Sync for InvalidEnvironment
impl Unpin for InvalidEnvironment
impl UnwindSafe for InvalidEnvironment
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