pub struct InformationalResponseTracker { /* private fields */ }Expand description
Small state machine for bounded informational-response handling.
Implementations§
Source§impl InformationalResponseTracker
impl InformationalResponseTracker
Sourcepub const fn new(policy: RawResponsePolicy<'_>) -> Self
pub const fn new(policy: RawResponsePolicy<'_>) -> Self
Creates a tracker from a validated response policy.
Sourcepub fn observe(
&mut self,
status: StatusCode,
) -> Result<bool, InformationalResponseError>
pub fn observe( &mut self, status: StatusCode, ) -> Result<bool, InformationalResponseError>
Observes one response head and reports whether it is the final head.
Trait Implementations§
Source§impl Clone for InformationalResponseTracker
impl Clone for InformationalResponseTracker
Source§fn clone(&self) -> InformationalResponseTracker
fn clone(&self) -> InformationalResponseTracker
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InformationalResponseTracker
Source§impl Debug for InformationalResponseTracker
impl Debug for InformationalResponseTracker
impl Eq for InformationalResponseTracker
impl StructuralPartialEq for InformationalResponseTracker
Auto Trait Implementations§
impl Freeze for InformationalResponseTracker
impl RefUnwindSafe for InformationalResponseTracker
impl Send for InformationalResponseTracker
impl Sync for InformationalResponseTracker
impl Unpin for InformationalResponseTracker
impl UnsafeUnpin for InformationalResponseTracker
impl UnwindSafe for InformationalResponseTracker
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