Skip to main content

Network

Trait Network 

Source
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§

Source

type Socket: Socket

The socket type used for the connection.

Required Methods§

Source

async fn describe(&mut self) -> Result<Result<DescribeOutput, NetworkError>>

Describe all interfaces managed by systemd-networkd.

Source

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.

Implementations on Foreign Types§

Source§

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

Source§

type Socket = S

Source§

async fn describe(&mut self) -> Result<Result<DescribeOutput, NetworkError>>

Source§

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

Implementors§