pub struct Endpoint<'a, State> { /* private fields */ }
Implementations§
Source§impl<'a, State> Endpoint<'a, State>
impl<'a, State> Endpoint<'a, State>
pub fn at(&mut self, pattern: &'static str) -> Endpoint<'_, State>
pub fn scope<T>(&mut self, scope: T) -> &mut Selfwhere
T: FnOnce(&mut Self),
pub fn param(&self) -> Option<&str>
pub fn include<T>(&mut self, middleware: T) -> &mut Selfwhere
T: Middleware<State> + 'static,
pub fn respond<T>(&mut self, responder: T) -> &mut Selfwhere
T: Middleware<State> + 'static,
Auto Trait Implementations§
impl<'a, State> Freeze for Endpoint<'a, State>
impl<'a, State> !RefUnwindSafe for Endpoint<'a, State>
impl<'a, State> Send for Endpoint<'a, State>
impl<'a, State> Sync for Endpoint<'a, State>
impl<'a, State> Unpin for Endpoint<'a, State>
impl<'a, State> !UnwindSafe for Endpoint<'a, State>
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