pub struct Rejection {
pub request_id: Option<RequestId>,
pub error: ErrorBody,
}Expand description
A command the host rejects before dispatch; send Rejection::into_response back.
Fields§
§request_id: Option<RequestId>The command’s request_id when it could be read, else None (null).
error: ErrorBodyThe error to answer with.
Implementations§
Source§impl Rejection
impl Rejection
Sourcepub fn into_response(self) -> ResponseEnvelope
pub fn into_response(self) -> ResponseEnvelope
The response envelope to send.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rejection
impl RefUnwindSafe for Rejection
impl Send for Rejection
impl Sync for Rejection
impl Unpin for Rejection
impl UnsafeUnpin for Rejection
impl UnwindSafe for Rejection
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