pub enum ObjectRead {
Data(usize),
End,
Abandoned,
}Expand description
The result of one FrameReader::read_object_data call.
Variants§
Data(usize)
The number of body bytes at the start of the buffer.
End
The end of the body, after which frames follow.
Abandoned
An object of the push that the sender abandoned.
The call read the Abort message that must follow the marker. If the
sender abandons a body of the pull, the call returns the Error
variant of the code in the Error message.
Trait Implementations§
Source§impl Clone for ObjectRead
impl Clone for ObjectRead
impl Copy for ObjectRead
Source§impl Debug for ObjectRead
impl Debug for ObjectRead
impl Eq for ObjectRead
Source§impl PartialEq for ObjectRead
impl PartialEq for ObjectRead
impl StructuralPartialEq for ObjectRead
Auto Trait Implementations§
impl Forget for ObjectRead
impl Freeze for ObjectRead
impl Move for ObjectRead
impl RefUnwindSafe for ObjectRead
impl Send for ObjectRead
impl Sync for ObjectRead
impl Unpin for ObjectRead
impl UnsafeUnpin for ObjectRead
impl UnwindSafe for ObjectRead
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.