pub struct Response {
pub bytes: Bytes,
pub chunks: Chunks,
pub will_wake: bool,
pub status: Status,
}Expand description
The result of a pop operation
Fields
bytes: BytesInformation about the bytes that were received
chunks: ChunksInformation about the chunks that were received
will_wake: boolIndicates if the operation resulted in storing the provided waker to notify when the request may be polled again.
status: StatusThe current status of the stream
Implementations
sourceimpl Response
impl Response
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 Eq for Response
impl StructuralEq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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