Struct varlink::Call [−][src]
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 Write
request: 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 reply_struct(&mut self, reply: Reply) -> Result<()>
[src]
fn set_continues(&mut self, cont: bool)
[src]
fn to_upgraded(&mut self)
[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.
fn get_request(&self) -> Option<&Request<'_>>
[src]
fn reply_method_not_found(&mut self, method_name: String) -> Result<()>
[src]
fn reply_method_not_implemented(&mut self, method_name: String) -> Result<()>
[src]
fn reply_invalid_parameter(&mut self, parameter_name: String) -> Result<()>
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,