pub struct Response {
pub bytes: Bytes,
pub chunks: Chunks,
pub will_wake: bool,
pub status: Status,
}
Expand description
The result of a tx request
Fields§
§bytes: Bytes
Information about the bytes that were sent
chunks: Chunks
Information about the chunks that were sent
will_wake: bool
Indicates if the operation resulted in storing the provided waker to notify when the request may be polled again.
status: Status
The 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§
source§impl PartialEq for Response
impl PartialEq for Response
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