pub struct ErrorCallbackHandler {}
Expand description
A callback handler that always returns an error.
This is provided for cases in which no callbacks are desired and also demonstrates error handling.
Trait Implementations§
Source§impl CallbackHandler for ErrorCallbackHandler
impl CallbackHandler for ErrorCallbackHandler
Source§fn call<'a>(
&'a self,
_: CallbackDataAndSession<Self::Data>,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError + Send>>> + Send + 'a>>
fn call<'a>( &'a self, _: CallbackDataAndSession<Self::Data>, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn StdError + Send>>> + Send + 'a>>
HTTP request to “/callback” has been made with payload which as been
deserialized into
Self::Data
and session data stored in
CallbackDataAndSession.Source§impl Clone for ErrorCallbackHandler
impl Clone for ErrorCallbackHandler
Source§fn clone(&self) -> ErrorCallbackHandler
fn clone(&self) -> ErrorCallbackHandler
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 moreAuto Trait Implementations§
impl Freeze for ErrorCallbackHandler
impl RefUnwindSafe for ErrorCallbackHandler
impl Send for ErrorCallbackHandler
impl Sync for ErrorCallbackHandler
impl Unpin for ErrorCallbackHandler
impl UnwindSafe for ErrorCallbackHandler
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