pub struct StatusConfig { /* private fields */ }Expand description
A status code configuration.
Implementations§
Source§impl StatusConfig
impl StatusConfig
Sourcepub const fn new(accepted: HashSet<StatusCode>) -> Self
pub const fn new(accepted: HashSet<StatusCode>) -> Self
Creates a status code configuration.
Sourcepub fn accepted(&self, status: StatusCode) -> bool
pub fn accepted(&self, status: StatusCode) -> bool
Returns whether a status code is accepted.
Trait Implementations§
Source§impl Clone for StatusConfig
impl Clone for StatusConfig
Source§fn clone(&self) -> StatusConfig
fn clone(&self) -> StatusConfig
Returns a copy 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 StatusConfig
impl Debug for StatusConfig
Auto Trait Implementations§
impl Freeze for StatusConfig
impl RefUnwindSafe for StatusConfig
impl Send for StatusConfig
impl Sync for StatusConfig
impl Unpin for StatusConfig
impl UnwindSafe for StatusConfig
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