pub struct NativeBackend { /* private fields */ }Expand description
Native backend using FFI to libstdio_bus
Implementations§
Source§impl NativeBackend
impl NativeBackend
Sourcepub fn from_config_source(source: &ConfigSource) -> Result<Self>
pub fn from_config_source(source: &ConfigSource) -> Result<Self>
Create from a ConfigSource (primary)
Trait Implementations§
Source§impl Backend for NativeBackend
impl Backend for NativeBackend
Source§fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the backend
Source§fn stop<'life0, 'async_trait>(
&'life0 self,
timeout_secs: u32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
timeout_secs: u32,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop the backend gracefully
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a message to workers
Source§fn worker_count(&self) -> i32
fn worker_count(&self) -> i32
Get number of running workers (-1 if unknown)
Source§fn client_count(&self) -> i32
fn client_count(&self) -> i32
Get number of connected clients (-1 if unknown)
Source§fn backend_type(&self) -> &'static str
fn backend_type(&self) -> &'static str
Get backend type name
Auto Trait Implementations§
impl !Freeze for NativeBackend
impl !RefUnwindSafe for NativeBackend
impl Send for NativeBackend
impl Sync for NativeBackend
impl Unpin for NativeBackend
impl UnsafeUnpin for NativeBackend
impl !UnwindSafe for NativeBackend
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