pub struct HttpEndpointResource { /* private fields */ }Implementations§
Source§impl HttpEndpointResource
impl HttpEndpointResource
pub fn new(local_addr: SocketAddr, uri: &Uri) -> Result<Self>
Trait Implementations§
Source§impl Clone for HttpEndpointResource
impl Clone for HttpEndpointResource
Source§fn clone(&self) -> HttpEndpointResource
fn clone(&self) -> HttpEndpointResource
Returns a duplicate 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 Resource for HttpEndpointResource
impl Resource for HttpEndpointResource
Source§fn resource_id(&self) -> &str
fn resource_id(&self) -> &str
Returns the resource to which access is desired
Source§fn next_resource_id<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn next_resource_id<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the next resource in the inheritance hierarchy;
starts with the targeted resource_id and walks through
its parents.
Auto Trait Implementations§
impl Freeze for HttpEndpointResource
impl RefUnwindSafe for HttpEndpointResource
impl Send for HttpEndpointResource
impl Sync for HttpEndpointResource
impl Unpin for HttpEndpointResource
impl UnwindSafe for HttpEndpointResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more