Skip to main content

VarlinkRwhodClientProxy

Trait VarlinkRwhodClientProxy 

Source
pub trait VarlinkRwhodClientProxy {
    type Socket: Socket;

    // Required methods
    async fn rwho(
        &mut self,
        all: bool,
    ) -> Result<Result<VarlinkRwhoResponse, VarlinkRwhodClientError>>;
    async fn ruptime(
        &mut self,
    ) -> Result<Result<VarlinkRuptimeResponse, VarlinkRwhodClientError>>;
    fn chain_rwho<'c>(
        &'c mut self,
        all: bool,
    ) -> Result<Chain<'c, Self::Socket>>;
    fn chain_ruptime<'c>(&'c mut self) -> Result<Chain<'c, Self::Socket>>;
}

Required Associated Types§

Source

type Socket: Socket

The socket type used for the connection.

Required Methods§

Source

async fn rwho( &mut self, all: bool, ) -> Result<Result<VarlinkRwhoResponse, VarlinkRwhodClientError>>

Source

async fn ruptime( &mut self, ) -> Result<Result<VarlinkRuptimeResponse, VarlinkRwhodClientError>>

Source

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

Start a chain with this method call.

Source

fn chain_ruptime<'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> VarlinkRwhodClientProxy for Connection<S>
where S: Socket,

Source§

type Socket = S

Source§

async fn rwho( &mut self, all: bool, ) -> Result<Result<VarlinkRwhoResponse, VarlinkRwhodClientError>>

Source§

async fn ruptime( &mut self, ) -> Result<Result<VarlinkRuptimeResponse, VarlinkRwhodClientError>>

Source§

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

Source§

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

Implementors§