[−][src]Enum ws_frame::Status
The result of a successful decode pass.
Complete
is used when the buffer
contained the complete value. Partial
is used when decoding did not reach
the end of the expected value, but no invalid data was found.
Variants
Complete(usize)
The completed result.
Contains the amount of bytes decoded.
Partial
A partial result.
Methods
impl Status
[src]
pub fn is_complete(&self) -> bool
[src]
Convenience method to check if status is complete.
pub fn is_partial(&self) -> bool
[src]
Convenience method to check if status is partial.
pub fn unwrap(self) -> usize
[src]
Convenience method to unwrap a Complete value. Panics if the status is partial.
Trait Implementations
Auto Trait Implementations
impl Sync for Status
impl Send for Status
impl Unpin for Status
impl RefUnwindSafe for Status
impl UnwindSafe for Status
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,