Skip to main content

Source

Trait Source 

Source
pub trait Source:
    Send
    + Sync
    + 'static {
    // Required methods
    fn ping(&self) -> impl Future<Output = Probe> + Send;
    fn list(&self) -> impl Future<Output = Result<Vec<Listed>, String>> + Send;
    fn events(
        &self,
    ) -> impl Future<Output = Result<BoxStream<'static, Result<DockerEvent, String>>, String>> + Send;
}
Expand description

Where the containers are read from.

Required Methods§

Source

fn ping(&self) -> impl Future<Output = Probe> + Send

Looks for the runtime and pings it.

Source

fn list(&self) -> impl Future<Output = Result<Vec<Listed>, String>> + Send

Every agent container Docker has, running or not.

Source

fn events( &self, ) -> impl Future<Output = Result<BoxStream<'static, Result<DockerEvent, String>>, String>> + Send

The events of agent containers, from now.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§