pub enum Status {
Open,
Finishing,
Finished,
Resetting,
Reset(StreamError),
}Variants§
Open
The stream is open and writable
Finishing
The stream is finishing but still has data to be flushed
Finished
The stream is finished and completely flushed
Resetting
The stream has been reset locally but has not been acknowledged by the peer
Reset(StreamError)
The stream was reset either by the peer or locally
Implementations§
Source§impl Status
impl Status
Sourcepub fn is_finishing(&self) -> bool
pub fn is_finishing(&self) -> bool
Returns true if the status is Finishing
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Returns true if the status is Finished
Sourcepub fn is_resetting(&self) -> bool
pub fn is_resetting(&self) -> bool
Returns true if the status is Resetting
Sourcepub fn is_closing(&self) -> bool
pub fn is_closing(&self) -> bool
Returns true if the status is Finishing or Resetting
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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