Struct saphir::utils::EndpointResolver
source · pub struct EndpointResolver { /* private fields */ }
Implementations§
source§impl EndpointResolver
impl EndpointResolver
pub fn new( 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>
pub fn add_method(&mut self, m: Method)
pub fn add_method_with_metadata<I: Into<Option<HandlerMetadata>>>( &mut self, m: Method, meta: I )
pub fn resolve(&self, req: &mut Request<Body>) -> EndpointResolverResult<'_>
pub fn id(&self) -> u64
Trait Implementations§
source§impl Debug for EndpointResolver
impl Debug for EndpointResolver
source§impl Ord for EndpointResolver
impl Ord for EndpointResolver
source§impl PartialEq<EndpointResolver> for EndpointResolver
impl PartialEq<EndpointResolver> for EndpointResolver
source§impl PartialOrd<EndpointResolver> for EndpointResolver
impl PartialOrd<EndpointResolver> for EndpointResolver
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for EndpointResolver
impl StructuralEq for EndpointResolver
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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.