pub struct BackgroundRuntimeHost {
pub embedded: EmbeddedRuntimeHost,
pub background_task_host: Arc<dyn BackgroundTaskHost>,
}Expand description
Host shape for runtimes that support background plugin work.
Fields§
§embedded: EmbeddedRuntimeHost§background_task_host: Arc<dyn BackgroundTaskHost>Implementations§
Source§impl BackgroundRuntimeHost
impl BackgroundRuntimeHost
pub fn new( embedded: EmbeddedRuntimeHost, background_task_host: Arc<dyn BackgroundTaskHost>, ) -> Self
Trait Implementations§
Source§impl Clone for BackgroundRuntimeHost
impl Clone for BackgroundRuntimeHost
Source§fn clone(&self) -> BackgroundRuntimeHost
fn clone(&self) -> BackgroundRuntimeHost
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 BackgroundRuntimeHost
impl !RefUnwindSafe for BackgroundRuntimeHost
impl Send for BackgroundRuntimeHost
impl Sync for BackgroundRuntimeHost
impl Unpin for BackgroundRuntimeHost
impl UnsafeUnpin for BackgroundRuntimeHost
impl !UnwindSafe for BackgroundRuntimeHost
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