pub struct AsyncFnMode;Expand description
Marker type that selects async function dispatch for IntoHandler.
Used as the Mode type parameter when a plain async fn(E) -> HandlerResult
function pointer or closure is passed to a subscribe_* method.
Trait Implementations§
Source§impl IntoSubscriptionPolicy<AsyncFnMode> for SubscriptionPolicy
impl IntoSubscriptionPolicy<AsyncFnMode> for SubscriptionPolicy
Source§fn into_subscription_policy(self) -> SubscriptionPolicy
fn into_subscription_policy(self) -> SubscriptionPolicy
Convert into the internal
SubscriptionPolicy representation.Source§impl IntoSubscriptionPolicy<AsyncFnMode> for SyncSubscriptionPolicy
impl IntoSubscriptionPolicy<AsyncFnMode> for SyncSubscriptionPolicy
Source§fn into_subscription_policy(self) -> SubscriptionPolicy
fn into_subscription_policy(self) -> SubscriptionPolicy
Convert into the internal
SubscriptionPolicy representation.impl<E, F, Fut> IntoHandler<E, AsyncFnMode> for F
Auto Trait Implementations§
impl Freeze for AsyncFnMode
impl RefUnwindSafe for AsyncFnMode
impl Send for AsyncFnMode
impl Sync for AsyncFnMode
impl Unpin for AsyncFnMode
impl UnsafeUnpin for AsyncFnMode
impl UnwindSafe for AsyncFnMode
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