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§
Source§impl 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 StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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