pub struct SpawnOptions {
pub label: String,
pub description: Option<String>,
pub parent_id: Option<ThreadId>,
}Expand description
Options for spawning a subtask.
Fields§
§label: StringLabel shown in the sidebar.
description: Option<String>Initial description of what the subtask is doing.
parent_id: Option<ThreadId>Parent thread that spawned this subtask (if any).
Implementations§
Source§impl SpawnOptions
impl SpawnOptions
Trait Implementations§
Source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
Source§fn clone(&self) -> SpawnOptions
fn clone(&self) -> SpawnOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnsafeUnpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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