Struct varlink::Reply[][src]

pub struct Reply {
    pub continues: 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>error: Option<Cow<'static, str>>parameters: Option<Value>

Implementations

impl Reply[src]

pub fn parameters(parameters: Option<Value>) -> Self[src]

pub fn error<S: Into<Cow<'static, str>>>(
    name: S,
    parameters: Option<Value>
) -> Self
[src]

Trait Implementations

impl Clone for Reply[src]

impl Debug for Reply[src]

impl Default for Reply[src]

impl<'de> Deserialize<'de> for Reply[src]

impl From<Reply> for ErrorKind[src]

impl<T> From<T> for Reply where
    T: VarlinkReply + Serialize
[src]

impl PartialEq<Reply> for Reply[src]

impl Serialize for Reply[src]

impl StructuralPartialEq for Reply[src]

Auto Trait Implementations

impl RefUnwindSafe for Reply

impl Send for Reply

impl Sync for Reply

impl Unpin for Reply

impl UnwindSafe for Reply

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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>,