pub enum FieldMapError {
Immutable,
TooManyFields,
TotalSizeTooBig,
InvalidHeaderName,
}Expand description
Errors that can happen when mutating/operating on a FieldMap.
Variants§
Immutable
A mutation was attempted when the map is not mutable.
TooManyFields
The map has too many fields and is not allowed to add more.
Note that this is currently a limitation inherited from
[http::HeaderMap].
TotalSizeTooBig
The map’s total size, of keys and values, is too large.
InvalidHeaderName
An invalid header name was attempted to be added.
Trait Implementations§
Source§impl Clone for FieldMapError
impl Clone for FieldMapError
Source§fn clone(&self) -> FieldMapError
fn clone(&self) -> FieldMapError
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 FieldMapError
impl Debug for FieldMapError
Source§impl Display for FieldMapError
impl Display for FieldMapError
Source§impl Error for FieldMapError
impl Error for FieldMapError
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<FieldMapError> for HeaderError
Available on crate feature p2 only.
impl From<FieldMapError> for HeaderError
Available on crate feature
p2 only.Source§fn from(err: FieldMapError) -> Self
fn from(err: FieldMapError) -> Self
Converts to this type from the input type.
Source§impl From<FieldMapError> for TrappableError<HeaderError>
Available on crate feature p3 only.
impl From<FieldMapError> for TrappableError<HeaderError>
Available on crate feature
p3 only.Source§fn from(e: FieldMapError) -> Self
fn from(e: FieldMapError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderName> for FieldMapError
impl From<InvalidHeaderName> for FieldMapError
Source§impl From<MaxSizeReached> for FieldMapError
impl From<MaxSizeReached> for FieldMapError
Source§impl PartialEq for FieldMapError
impl PartialEq for FieldMapError
impl Copy for FieldMapError
impl Eq for FieldMapError
impl StructuralPartialEq for FieldMapError
Auto Trait Implementations§
impl Freeze for FieldMapError
impl RefUnwindSafe for FieldMapError
impl Send for FieldMapError
impl Sync for FieldMapError
impl Unpin for FieldMapError
impl UnwindSafe for FieldMapError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more