[−][src]Struct saphir::utils::EndpointResolver
Implementations
impl EndpointResolver
[src]
pub fn new(
path_str: &str,
method: Method
) -> Result<EndpointResolver, SaphirError>
[src]
path_str: &str,
method: Method
) -> Result<EndpointResolver, SaphirError>
pub fn new_with_metadata<I: Into<Option<HandlerMetadata>>>(
path_str: &str,
method: Method,
meta: I
) -> Result<EndpointResolver, SaphirError>
[src]
path_str: &str,
method: Method,
meta: I
) -> Result<EndpointResolver, SaphirError>
pub fn add_method(&mut self, m: Method)
[src]
pub fn add_method_with_metadata<I: Into<Option<HandlerMetadata>>>(
&mut self,
m: Method,
meta: I
)
[src]
&mut self,
m: Method,
meta: I
)
pub fn resolve(&self, req: &mut Request<Body>) -> EndpointResolverResult<'_>
[src]
pub fn id(&self) -> u64
[src]
Trait Implementations
impl Debug for EndpointResolver
[src]
impl Eq for EndpointResolver
[src]
impl Ord for EndpointResolver
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<EndpointResolver> for EndpointResolver
[src]
impl PartialOrd<EndpointResolver> for EndpointResolver
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for EndpointResolver
[src]
Auto Trait Implementations
impl !RefUnwindSafe for EndpointResolver
impl Send for EndpointResolver
impl Sync for EndpointResolver
impl Unpin for EndpointResolver
impl UnwindSafe for EndpointResolver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,