pub trait Network {
type Socket: Socket;
// Required methods
async fn describe(&mut self) -> Result<Result<DescribeOutput, NetworkError>>;
fn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>;
}Expand description
Proxy trait for calling methods on the io.systemd.Network interface.
Required Associated Types§
Required Methods§
Sourceasync fn describe(&mut self) -> Result<Result<DescribeOutput, NetworkError>>
async fn describe(&mut self) -> Result<Result<DescribeOutput, NetworkError>>
Describe all interfaces managed by systemd-networkd.
Sourcefn chain_describe<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>
fn chain_describe<'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", so this trait is not object safe.