Struct varlink::Reply [−][src]
pub struct Reply { pub continues: Option<bool>, pub upgraded: Option<bool>, pub error: Option<Cow<'static, str>>, pub parameters: Option<Value>, }
The structure of a varlink reply. Used to deserialize it into json.
There should be no need to use this directly. See the CallTrait to use with the first Call parameter
Fields
continues: Option<bool>
upgraded: Option<bool>
error: Option<Cow<'static, str>>
parameters: Option<Value>
Methods
impl Reply
[src]
impl Reply
pub fn parameters(parameters: Option<Value>) -> Self
[src]
pub fn parameters(parameters: Option<Value>) -> Self
pub fn error<S: Into<Cow<'static, str>>>(
name: S,
parameters: Option<Value>
) -> Self
[src]
pub fn error<S: Into<Cow<'static, str>>>(
name: S,
parameters: Option<Value>
) -> Self
Trait Implementations
impl From<Reply> for Error
[src]
impl From<Reply> for Error
impl Debug for Reply
[src]
impl Debug for Reply
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Reply
[src]
impl PartialEq for Reply
fn eq(&self, other: &Reply) -> bool
[src]
fn eq(&self, other: &Reply) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Reply) -> bool
[src]
fn ne(&self, other: &Reply) -> bool
This method tests for !=
.
impl Default for Reply
[src]
impl Default for Reply
impl Clone for Reply
[src]
impl Clone for Reply
fn clone(&self) -> Reply
[src]
fn clone(&self) -> Reply
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T> From<T> for Reply where
T: VarlinkReply + Serialize,
[src]
impl<T> From<T> for Reply where
T: VarlinkReply + Serialize,