pub struct ResourceService(/* private fields */);Expand description
A resource service that can be used to handle requests.
Created by calling Resource::into_service() on a Resource.
Trait Implementations§
Source§impl Clone for ResourceService
impl Clone for ResourceService
Source§fn clone(&self) -> ResourceService
fn clone(&self) -> ResourceService
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 From<ResourceService> for ArcResourceService
impl From<ResourceService> for ArcResourceService
Source§fn from(resource_service: ResourceService) -> Self
fn from(resource_service: ResourceService) -> Self
Converts to this type from the input type.
Source§impl From<ResourceService> for LeakedResourceService
impl From<ResourceService> for LeakedResourceService
Source§fn from(resource_service: ResourceService) -> Self
fn from(resource_service: ResourceService) -> Self
Converts to this type from the input type.
Source§impl<B> Service<Request<B>> for ResourceService
impl<B> Service<Request<B>> for ResourceService
Source§type Error = Infallible
type Error = Infallible
Errors produced by the service. Read more
Auto Trait Implementations§
impl Freeze for ResourceService
impl !RefUnwindSafe for ResourceService
impl Send for ResourceService
impl Sync for ResourceService
impl Unpin for ResourceService
impl !UnwindSafe for ResourceService
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