pub struct APP_HANDLER;Expand description
Service available in app scoped Handler<A> calls.
Implementations§
Source§impl APP_HANDLER
impl APP_HANDLER
Sourcepub fn weak_handle(&self) -> Option<Box<dyn AppWeakHandle>>
pub fn weak_handle(&self) -> Option<Box<dyn AppWeakHandle>>
Acquire a weak reference to the event subscription handle if the handler is being called in the app scope.
Sourcepub fn unsubscribe(&self)
pub fn unsubscribe(&self)
Unsubscribe, if the handler is being called in the app scope.
Sourcepub fn is_preview(&self) -> bool
pub fn is_preview(&self) -> bool
If the handler is being called in the preview track.
Auto Trait Implementations§
impl Freeze for APP_HANDLER
impl RefUnwindSafe for APP_HANDLER
impl Send for APP_HANDLER
impl Sync for APP_HANDLER
impl Unpin for APP_HANDLER
impl UnwindSafe for APP_HANDLER
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more