Skip to main content

FromReply

Trait FromReply 

Source
pub trait FromReply: Sized {
    // Required method
    fn from_reply(reply: Vec<Value>) -> Result<Self>;
}
Expand description

Turns a reply into a method’s documented return type. OpenComputers methods report failure as nil, "reason" (or false, "reason" for some boolean methods); decoding into a non-optional type turns the first into Error::Failed.

Required Methods§

Source

fn from_reply(reply: Vec<Value>) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FromReply for ()

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl FromReply for Vec<Value>

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl<A: FromValue, B: FromValue, C: FromValue, D: FromValue, E: FromValue> FromReply for (A, B, C, D, E)

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl<A: FromValue, B: FromValue, C: FromValue, D: FromValue> FromReply for (A, B, C, D)

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl<A: FromValue, B: FromValue, C: FromValue> FromReply for (A, B, C)

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl<A: FromValue, B: FromValue> FromReply for (A, B)

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Source§

impl<A: FromValue> FromReply for (A,)

Source§

fn from_reply(reply: Vec<Value>) -> Result<Self>

Implementors§