Struct varlink::Call[][src]

pub struct Call<'a> {
    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

#Examples

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 Call_TestMethod, /* more arguments */) -> varlink::Result<()> {
    /* ... */
    return call.reply( /* more arguments */ );
}

Fields

Trait Implementations

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

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

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

True, if this request does not want a reply.

True, if this request accepts more than one reply.

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

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

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>