pub struct FnHandler<F> { /* private fields */ }Expand description
Wraps a closure as a SoapHandler for ergonomic registration.
Implementations§
Trait Implementations§
Source§impl<F, Fut> SoapHandler for FnHandler<F>
impl<F, Fut> SoapHandler for FnHandler<F>
fn handle<'life0, 'async_trait>(
&'life0 self,
body: Bytes,
) -> Pin<Box<dyn Future<Output = Result<Bytes, SoapFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn handle_with_headers<'life0, 'life1, 'async_trait>(
&'life0 self,
body: Bytes,
_headers: &'life1 [Bytes],
) -> Pin<Box<dyn Future<Output = Result<Bytes, SoapFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_with_headers<'life0, 'life1, 'async_trait>(
&'life0 self,
body: Bytes,
_headers: &'life1 [Bytes],
) -> Pin<Box<dyn Future<Output = Result<Bytes, SoapFault>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle a request with access to the SOAP header element fragments (each is the
raw bytes of one direct child of
<Header>). Defaults to ignoring headers and
calling handle. Handlers needing WS-Addressing/WS-Security header data override this.Auto Trait Implementations§
impl<F> Freeze for FnHandler<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnHandler<F>where
F: RefUnwindSafe,
impl<F> Send for FnHandler<F>where
F: Send,
impl<F> Sync for FnHandler<F>where
F: Sync,
impl<F> Unpin for FnHandler<F>where
F: Unpin,
impl<F> UnsafeUnpin for FnHandler<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FnHandler<F>where
F: 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