#[non_exhaustive]pub enum ServerInvalid {
Show 13 variants
NotAnObject,
MissingType,
UnknownType {
declared: String,
},
ForeignField {
field: String,
},
WrongType {
field: &'static str,
expected: &'static str,
},
NotAToken {
command: String,
},
CommandEscapes,
BadCwd {
cwd: String,
},
ReservedEnv {
name: String,
},
BadHeaderName {
name: String,
},
BadHeaderValue {
name: String,
},
DuplicateHeader {
name: String,
},
BadUrl(UrlInvalid),
}Expand description
Why one server entry was skipped (§7.2.2 rule 3).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotAnObject
The entry is not a JSON object.
MissingType
The type field is missing or not a string.
UnknownType
The type value is not a variant this specification defines.
ForeignField
A field outside the declared variant’s closed set appears.
WrongType
A field has the wrong JSON type.
Fields
NotAToken
command is empty, or a bare name containing path separators.
CommandEscapes
A plugin-relative command escapes the plugin root.
BadCwd
cwd matches none of the three permitted forms, or escapes its anchor.
ReservedEnv
env names a reserved variable (§9.2).
BadHeaderName
A header name is not a valid HTTP field name.
BadHeaderValue
A header value is not a valid HTTP field value.
DuplicateHeader
The same header name appears more than once under different casing.
BadUrl(UrlInvalid)
The endpoint URL failed §7.2.1.
Trait Implementations§
Source§impl Clone for ServerInvalid
impl Clone for ServerInvalid
Source§impl Debug for ServerInvalid
impl Debug for ServerInvalid
Source§impl Display for ServerInvalid
impl Display for ServerInvalid
impl Eq for ServerInvalid
Source§impl Error for ServerInvalid
impl Error for ServerInvalid
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 PartialEq for ServerInvalid
impl PartialEq for ServerInvalid
impl StructuralPartialEq for ServerInvalid
Auto Trait Implementations§
impl Freeze for ServerInvalid
impl RefUnwindSafe for ServerInvalid
impl Send for ServerInvalid
impl Sync for ServerInvalid
impl Unpin for ServerInvalid
impl UnsafeUnpin for ServerInvalid
impl UnwindSafe for ServerInvalid
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.