pub struct HttpStatus(/* private fields */);Expand description
A failure status code: always in 400..=999.
§Examples
use feedparser_rs::http::HttpStatus;
assert_eq!(HttpStatus::new(404).map(HttpStatus::as_u16), Some(404));
assert!(HttpStatus::new(200).is_none());Implementations§
Trait Implementations§
Source§impl Clone for HttpStatus
impl Clone for HttpStatus
impl Copy for HttpStatus
Source§impl Debug for HttpStatus
impl Debug for HttpStatus
Source§impl Display for HttpStatus
impl Display for HttpStatus
impl Eq for HttpStatus
Source§impl Hash for HttpStatus
impl Hash for HttpStatus
Source§impl PartialEq for HttpStatus
impl PartialEq for HttpStatus
impl StructuralPartialEq for HttpStatus
Auto Trait Implementations§
impl Forget for HttpStatus
impl Freeze for HttpStatus
impl Move for HttpStatus
impl RefUnwindSafe for HttpStatus
impl Send for HttpStatus
impl Sync for HttpStatus
impl Unpin for HttpStatus
impl UnsafeUnpin for HttpStatus
impl UnwindSafe for HttpStatus
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more