Struct service_async::BoxedAsyncMakeService
source · pub struct BoxedAsyncMakeService<S, E> { /* private fields */ }
Implementations§
source§impl<S, E> BoxedAsyncMakeService<S, E>
impl<S, E> BoxedAsyncMakeService<S, E>
pub fn new<AMS>(ams: AMS) -> Selfwhere
AMS: AsyncMakeService<Service = S, Error = E> + 'static,
S: 'static,
pub fn downcast_ref<T: Any>(&self) -> Option<&T>
sourcepub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T
Safety
If you are sure the inner type is T, you can downcast it.
Trait Implementations§
source§impl<S, E> AsyncMakeService for BoxedAsyncMakeService<S, E>
impl<S, E> AsyncMakeService for BoxedAsyncMakeService<S, E>
Auto Trait Implementations§
impl<S, E> RefUnwindSafe for BoxedAsyncMakeService<S, E>
impl<S, E> !Send for BoxedAsyncMakeService<S, E>
impl<S, E> !Sync for BoxedAsyncMakeService<S, E>
impl<S, E> Unpin for BoxedAsyncMakeService<S, E>
impl<S, E> UnwindSafe for BoxedAsyncMakeService<S, E>
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