pub struct PostFn(pub Box<dyn Fn(String, String) -> Result<String> + Send + Sync>);Expand description
PostFn lets you override the default POST request handler. This is useful for testing.
Tuple Fields§
§0: Box<dyn Fn(String, String) -> Result<String> + Send + Sync>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PostFn
impl Send for PostFn
impl Sync for PostFn
impl Unpin for PostFn
impl !UnwindSafe for PostFn
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