pub struct Activity { /* private fields */ }Implementations§
Source§impl Activity
impl Activity
pub fn observer_id(&self) -> &'static str
pub fn activation_id(&self) -> ActivationId
pub fn is_initialized(&self) -> bool
pub async fn observe(&mut self, ready: impl Fn() + Send + Sync) -> ObserverError
pub async fn stop(&mut self) -> Result<(), ObserverError>
pub async fn cleanup(&mut self) -> Result<(), ObserverError>
Auto Trait Implementations§
impl !RefUnwindSafe for Activity
impl !Sync for Activity
impl !UnwindSafe for Activity
impl Freeze for Activity
impl Send for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
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