Skip to main content

Machine

Trait Machine 

Source
pub trait Machine {
    type Socket: Socket;

    // Required methods
    async fn list(
        &mut self,
    ) -> Result<impl Stream<Item = Result<Result<ListOutput, MachineError>>>>;
    fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>;
}
Expand description

Proxy trait for calling methods on the io.systemd.Machine interface.

Required Associated Types§

Source

type Socket: Socket

The socket type used for the connection.

Required Methods§

Source

async fn list( &mut self, ) -> Result<impl Stream<Item = Result<Result<ListOutput, MachineError>>>>

List every registered machine, one reply per machine. [Requires ‘more’ flag]

Source

fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Start a chain with this method call.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<S> Machine for Connection<S>
where S: Socket,

Source§

type Socket = S

Source§

async fn list( &mut self, ) -> Result<impl Stream<Item = Result<Result<ListOutput, MachineError>>>>

Source§

fn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>

Implementors§