pub struct HandlerDynArc(/* private fields */);
Implementations§
Source§impl HandlerDynArc
impl HandlerDynArc
pub fn new(_handler: impl HandlerDyn) -> Self
pub fn delegate(&self, _request: Request<Body>) -> HandlerFutureDynBox ⓘ
pub fn from_arc(_handler: Arc<dyn HandlerDyn>) -> Self
pub fn into_arc(self) -> Arc<dyn HandlerDyn>
pub fn clone_arc(&self) -> Arc<dyn HandlerDyn>
Trait Implementations§
Source§impl Clone for HandlerDynArc
impl Clone for HandlerDynArc
Source§fn clone(&self) -> HandlerDynArc
fn clone(&self) -> HandlerDynArc
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 Handler for HandlerDynArc
impl Handler for HandlerDynArc
type Future = HandlerFutureDynBox
type ResponseBody = BodyDynBox
type ResponseBodyError = Error
fn handle(&self, _request: Request<Body>) -> Self::Future
fn wrap(self) -> HandlerWrapper<Self>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for HandlerDynArc
impl !RefUnwindSafe for HandlerDynArc
impl Send for HandlerDynArc
impl Sync for HandlerDynArc
impl Unpin for HandlerDynArc
impl !UnwindSafe for HandlerDynArc
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