Trait gclient::ext::sp_core::traits::SpawnEssentialNamed
pub trait SpawnEssentialNamed:
DynClone
+ Send
+ Sync {
// Required methods
fn spawn_essential_blocking(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send>>,
);
fn spawn_essential(
&self,
name: &'static str,
group: Option<&'static str>,
future: Pin<Box<dyn Future<Output = ()> + Send>>,
);
}
Expand description
Something that can spawn essential tasks (blocking and non-blocking) with an assigned name and optional group.
Essential tasks are special tasks that should take down the node when they end.
Required Methods§
Trait Implementations§
§impl<'clone> Clone for Box<dyn SpawnEssentialNamed + 'clone>
impl<'clone> Clone for Box<dyn SpawnEssentialNamed + 'clone>
§fn clone(&self) -> Box<dyn SpawnEssentialNamed + 'clone>
fn clone(&self) -> Box<dyn SpawnEssentialNamed + 'clone>
Returns a copy 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 more