pub struct InvalidHeader(&'static str);Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Debug for InvalidHeader
impl Debug for InvalidHeader
Source§impl Display for InvalidHeader
impl Display for InvalidHeader
Source§impl Error for InvalidHeader
impl Error for InvalidHeader
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<InvalidHeader> for NetworkError
impl From<InvalidHeader> for NetworkError
Source§fn from(source: InvalidHeader) -> Self
fn from(source: InvalidHeader) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidHeader
impl RefUnwindSafe for InvalidHeader
impl Send for InvalidHeader
impl Sync for InvalidHeader
impl Unpin for InvalidHeader
impl UnsafeUnpin for InvalidHeader
impl UnwindSafe for InvalidHeader
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