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§fn from(_: InvalidHeaderName) -> Self
fn from(_: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<MaxSizeReached> for FieldMapError
impl From<MaxSizeReached> for FieldMapError
Source§fn from(_: MaxSizeReached) -> Self
fn from(_: MaxSizeReached) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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,
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.Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§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.Source§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,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read more