pub struct DockerBackend { /* private fields */ }Expand description
Docker backend implementation
Implementations§
Source§impl DockerBackend
impl DockerBackend
Sourcepub fn new(config_path: &str, options: DockerOptions) -> Result<Self>
pub fn new(config_path: &str, options: DockerOptions) -> Result<Self>
Create a new Docker backend
Trait Implementations§
Source§impl Backend for DockerBackend
impl Backend for DockerBackend
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 DockerBackend
impl !RefUnwindSafe for DockerBackend
impl Send for DockerBackend
impl Sync for DockerBackend
impl Unpin for DockerBackend
impl UnsafeUnpin for DockerBackend
impl !UnwindSafe for DockerBackend
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