pub struct Exchange { /* private fields */ }Expand description
Captured framing facts and, when input can still change, shared state. A successful switch changes incoming body reads to raw data without releasing transport.
Implementations§
Source§impl Exchange
impl Exchange
pub fn version(&self) -> Version
pub fn is_head(&self) -> bool
pub fn is_connect(&self) -> bool
pub fn expects_continue(&self) -> bool
pub fn is_complete(&self) -> bool
pub fn is_tunnel(&self) -> bool
Sourcepub fn is_abandoned(&self) -> bool
pub fn is_abandoned(&self) -> bool
Whether the application discarded input before reaching its boundary.
pub fn is_persistent(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Exchange
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
impl UnwindSafe for Exchange
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