Enum volo_http::route::MethodEndpoint
source · pub enum MethodEndpoint<S> {
None,
Route(DynService),
Handler(DynHandler<S>),
}Variants§
Implementations§
source§impl<S> MethodEndpoint<S>
impl<S> MethodEndpoint<S>
pub fn from_handler<H, T>(h: H) -> MethodEndpoint<S>
pub fn from_service<Srv>(srv: Srv) -> MethodEndpoint<S>where
Srv: Service<HttpContext, Incoming, Response = Response, Error = Infallible> + Clone + Send + Sync + 'static,
Trait Implementations§
source§impl<S: Clone> Clone for MethodEndpoint<S>
impl<S: Clone> Clone for MethodEndpoint<S>
source§fn clone(&self) -> MethodEndpoint<S>
fn clone(&self) -> MethodEndpoint<S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S> Default for MethodEndpoint<S>
impl<S> Default for MethodEndpoint<S>
source§fn default() -> MethodEndpoint<S>
fn default() -> MethodEndpoint<S>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<S> !RefUnwindSafe for MethodEndpoint<S>
impl<S> Send for MethodEndpoint<S>
impl<S> Sync for MethodEndpoint<S>
impl<S> Unpin for MethodEndpoint<S>
impl<S> !UnwindSafe for MethodEndpoint<S>
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