Trait varlink::Interface[][src]

pub trait Interface {
    fn get_description(&self) -> &'static str;
fn get_name(&self) -> &'static str;
fn call_upgraded(
        &self,
        call: &mut Call<'_>,
        bufreader: &mut dyn BufRead
    ) -> Result<Vec<u8>>;
fn call(&self, call: &mut Call<'_>) -> Result<()>; }

This trait has to be implemented by any varlink interface implementor. All methods are generated by the varlink-rust-generator, so you don’t have to care about them.

Required methods

fn get_description(&self) -> &'static str[src]

fn get_name(&self) -> &'static str[src]

fn call_upgraded(
    &self,
    call: &mut Call<'_>,
    bufreader: &mut dyn BufRead
) -> Result<Vec<u8>>
[src]

fn call(&self, call: &mut Call<'_>) -> Result<()>[src]

Loading content...

Implementors

impl Interface for VarlinkService[src]

Loading content...