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§
Required Methods§
Sourceasync fn list(
&mut self,
) -> Result<impl Stream<Item = Result<Result<ListOutput, MachineError>>>>
async fn list( &mut self, ) -> Result<impl Stream<Item = Result<Result<ListOutput, MachineError>>>>
List every registered machine, one reply per machine. [Requires ‘more’ flag]
Sourcefn chain_list<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>
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".