pub enum RestReply {
Read(Parts, Bytes),
Streaming(Response<BodyStream>),
}Expand description
The response that ended a call.
Variants§
Read(Parts, Bytes)
A response whose body was read whole: every status ≥ 400, and a 2xx (or other status < 400) when the call was not streaming. The caller maps an error status to its own error.
Streaming(Response<BodyStream>)
A streaming call’s response with status < 400, its body left to the caller. Under a
deadline (CallTimeout::PerAttempt’s last attempt, or CallTimeout::Call) the
body yields Err(ModelError::Other(Box::new(RestError::DeadlineExceeded))) once the
deadline passes, then ends.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RestReply
impl !RefUnwindSafe for RestReply
impl !Sync for RestReply
impl !UnwindSafe for RestReply
impl Forget for RestReply
impl Move for RestReply
impl Send for RestReply
impl Unpin for RestReply
impl UnsafeUnpin for RestReply
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