pub struct BackgroundTaskRegistration {
pub id: BackgroundTaskId,
pub kind: BackgroundTaskKind,
pub producer: &'static str,
pub child_session_id: Option<String>,
pub parent_task_id: Option<BackgroundTaskId>,
}Expand description
Metadata required to register a local background task.
Fields§
§id: BackgroundTaskId§kind: BackgroundTaskKind§producer: &'static str§child_session_id: Option<String>§parent_task_id: Option<BackgroundTaskId>Trait Implementations§
Source§impl Clone for BackgroundTaskRegistration
impl Clone for BackgroundTaskRegistration
Source§fn clone(&self) -> BackgroundTaskRegistration
fn clone(&self) -> BackgroundTaskRegistration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BackgroundTaskRegistration
impl RefUnwindSafe for BackgroundTaskRegistration
impl Send for BackgroundTaskRegistration
impl Sync for BackgroundTaskRegistration
impl Unpin for BackgroundTaskRegistration
impl UnsafeUnpin for BackgroundTaskRegistration
impl UnwindSafe for BackgroundTaskRegistration
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