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
sourceimpl 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 StructuralEq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more