pub struct FixedPayload<R> { /* private fields */ }Available on crate feature
server only.Expand description
Panic handler which can return a fixed payload.
This type can be constructed by fixed_payload.
Trait Implementations§
Source§impl<R: Clone> Clone for FixedPayload<R>
impl<R: Clone> Clone for FixedPayload<R>
Source§fn clone(&self) -> FixedPayload<R>
fn clone(&self) -> FixedPayload<R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<R: Debug> Debug for FixedPayload<R>
impl<R: Debug> Debug for FixedPayload<R>
Source§impl<S, Cx, Req, Resp> Handler<S, Cx, Req> for FixedPayload<Resp>
impl<S, Cx, Req, Resp> Handler<S, Cx, Req> for FixedPayload<Resp>
Auto Trait Implementations§
impl<R> Freeze for FixedPayload<R>where
R: Freeze,
impl<R> RefUnwindSafe for FixedPayload<R>where
R: RefUnwindSafe,
impl<R> Send for FixedPayload<R>where
R: Send,
impl<R> Sync for FixedPayload<R>where
R: Sync,
impl<R> Unpin for FixedPayload<R>where
R: Unpin,
impl<R> UnwindSafe for FixedPayload<R>where
R: UnwindSafe,
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