Struct varlink::Call[][src]

pub struct Call<'a> {
    pub writer: &'a mut dyn Write,
    pub request: Option<&'a Request<'a>>,
    // some fields omitted
}

Call is a struct, which is passed as the first argument to the interface methods in a derived form.

See also the CallTrait to use with the first Call parameter

If your varlink method is called TestMethod, the rust method to be implemented is called test_method. The first parameter is of type Call_TestMethod, which has the method reply().

Examples

fn test_method(&self, call: &mut dyn Call_TestMethod, /* more arguments */) -> varlink::Result<()> {
   /* ... */
   return call.reply( /* more arguments */ );
}

Fields

writer: &'a mut dyn Writerequest: Option<&'a Request<'a>>

Implementations

impl<'a> Call<'a>[src]

pub fn new(writer: &'a mut dyn Write, request: &'a Request<'a>) -> Self[src]

pub fn reply_interface_not_found(&mut self, arg: Option<String>) -> Result<()>[src]

Trait Implementations

impl<'a> CallTrait for Call<'a>[src]

fn is_oneway(&self) -> bool[src]

True, if this request does not want a reply.

fn wants_more(&self) -> bool[src]

True, if this request accepts more than one reply.

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Call<'a>

impl<'a> !Send for Call<'a>

impl<'a> !Sync for Call<'a>

impl<'a> Unpin for Call<'a>

impl<'a> !UnwindSafe for Call<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,