[][src]Trait librobot::transmission::Jsonizable

pub trait Jsonizable where
    Self: Sized
{ fn from_json_slice(slice: &[u8]) -> Result<Self, DError>;
fn to_string<B>(&self) -> Result<String<B>, SError>
    where
        B: ArrayLength<u8>
; }

Traits utilitaires implémentés par toutes les structures que l'on envoie/récupère du réseau

Required methods

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>

Désérialisation d'un JSON en Servo

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 

Sérialisation d'un Servo en JSON

Loading content...

Implementors

impl Jsonizable for IO[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Désérialisation d'un JSON en Servo

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Sérialisation d'un Servo en JSON

impl Jsonizable for Pneumatic[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Désérialisation d'un JSON en Servo

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Sérialisation d'un Servo en JSON

impl Jsonizable for NavigationFrame[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Construit une trame a partir d'un flux de donnees json.

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Construit une chaine de caractère en json à partir de cette trame

impl Jsonizable for NavigationParametersFrame[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Construit une trame a partir d'un flux de donnees json.

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Construit une chaine de caractère en json à partir de cette trame

impl Jsonizable for Servo[src]

fn from_json_slice(slice: &[u8]) -> Result<Self, DError>[src]

Désérialisation d'un JSON en Servo

fn to_string<B>(&self) -> Result<String<B>, SError> where
    B: ArrayLength<u8>, 
[src]

Sérialisation d'un Servo en JSON

Loading content...