Struct varlink::Call [] [src]

pub struct Call<'a> {
    pub request: Option<&'a Request>,
    // 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

#Examples

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

Examples

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

Fields

Methods

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

[src]

True, if this request does not want a reply.

[src]

True, if this request accepts more than one reply.

Trait Implementations

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

[src]

Don't use this directly. Rather use the standard reply() method.

[src]

Set this to true to indicate, that more replies are following. Read more

[src]

reply with the standard varlink org.varlink.service.MethodNotFound error

[src]

reply with the standard varlink org.varlink.service.MethodNotImplemented error

[src]

reply with the standard varlink org.varlink.service.InvalidParameter error

Auto Trait Implementations

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

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