pub struct NativeAdapter {}Expand description
Native process adapter.
This is the fallback adapter when no platform-specific service manager is available. Daemons are spawned as regular OS processes.
Implementations§
Source§impl NativeAdapter
impl NativeAdapter
Trait Implementations§
Source§impl Default for NativeAdapter
impl Default for NativeAdapter
Source§impl PlatformAdapter for NativeAdapter
impl PlatformAdapter for NativeAdapter
Source§fn spawn<'life0, 'async_trait>(
&'life0 self,
daemon: Box<dyn Daemon>,
) -> Pin<Box<dyn Future<Output = Result<DaemonHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn spawn<'life0, 'async_trait>(
&'life0 self,
daemon: Box<dyn Daemon>,
) -> Pin<Box<dyn Future<Output = Result<DaemonHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Spawns a daemon on this platform. Read more
Source§fn signal<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
sig: Signal,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn signal<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
sig: Signal,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends a signal to a daemon. Read more
Source§fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
) -> Pin<Box<dyn Future<Output = Result<DaemonStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn status<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
) -> Pin<Box<dyn Future<Output = Result<DaemonStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Queries the status of a daemon. Read more
Source§fn attach_tracer<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
) -> Pin<Box<dyn Future<Output = Result<TracerHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn attach_tracer<'life0, 'life1, 'async_trait>(
&'life0 self,
handle: &'life1 DaemonHandle,
) -> Pin<Box<dyn Future<Output = Result<TracerHandle>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Attaches a tracer to a daemon (renacer integration). Read more
Auto Trait Implementations§
impl Freeze for NativeAdapter
impl RefUnwindSafe for NativeAdapter
impl Send for NativeAdapter
impl Sync for NativeAdapter
impl Unpin for NativeAdapter
impl UnwindSafe for NativeAdapter
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