pub struct NoopCallbackHandler {}Expand description
A dummy callback handler that does nothing.
This is provided as an example.
Trait Implementations§
Source§impl CallbackHandler for NoopCallbackHandler
impl CallbackHandler for NoopCallbackHandler
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 NoopCallbackHandler
impl Clone for NoopCallbackHandler
Source§fn clone(&self) -> NoopCallbackHandler
fn clone(&self) -> NoopCallbackHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NoopCallbackHandler
impl RefUnwindSafe for NoopCallbackHandler
impl Send for NoopCallbackHandler
impl Sync for NoopCallbackHandler
impl Unpin for NoopCallbackHandler
impl UnsafeUnpin for NoopCallbackHandler
impl UnwindSafe for NoopCallbackHandler
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