Struct embedded_svc::httpd::registry::RegistryBuilder
source · [−]pub struct RegistryBuilder<RR> { /* private fields */ }
Implementations
sourceimpl<RR> RegistryBuilder<RR> where
RR: Registry,
impl<RR> RegistryBuilder<RR> where
RR: Registry,
pub fn get(
self,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
pub fn post(
self,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
pub fn put(
self,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
pub fn delete(
self,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
pub fn head(
self,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
pub fn middleware(
self,
m: impl for<'r> Fn(Request, &'r dyn Fn(Request) -> Result<Response>) -> Result<Response> + 'static
) -> Result<RR>
pub fn handler(
self,
method: Method,
f: impl Fn(Request) -> Result<Response> + 'static
) -> Result<RR>
Auto Trait Implementations
impl<RR> RefUnwindSafe for RegistryBuilder<RR> where
RR: RefUnwindSafe,
impl<RR> Send for RegistryBuilder<RR> where
RR: Send,
impl<RR> Sync for RegistryBuilder<RR> where
RR: Sync,
impl<RR> Unpin for RegistryBuilder<RR> where
RR: Unpin,
impl<RR> UnwindSafe for RegistryBuilder<RR> where
RR: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more