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