pub enum ReplayClass {
Immutable,
Seekable,
OneShot,
Consumed,
}Expand description
Replayability classification for request bodies.
Used by redirect and retry code to determine whether a body can be re-sent without re-consuming the original source.
Variants§
Immutable
Empty or immutable byte body — always replayable.
Seekable
Seekable body that can be replayed by resetting position.
OneShot
One-shot stream — cannot be replayed.
Consumed
Body has been consumed.
Trait Implementations§
Source§impl Clone for ReplayClass
impl Clone for ReplayClass
impl Copy for ReplayClass
Source§impl Debug for ReplayClass
impl Debug for ReplayClass
impl Eq for ReplayClass
Source§impl PartialEq for ReplayClass
impl PartialEq for ReplayClass
impl StructuralPartialEq for ReplayClass
Auto Trait Implementations§
impl Freeze for ReplayClass
impl RefUnwindSafe for ReplayClass
impl Send for ReplayClass
impl Sync for ReplayClass
impl Unpin for ReplayClass
impl UnsafeUnpin for ReplayClass
impl UnwindSafe for ReplayClass
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