LelumProxyChain

Trait LelumProxyChain 

pub trait LelumProxyChain<'c, S, ReplyParams, ReplyError>
where S: Socket, ReplyParams: Deserialize<'c> + Debug, ReplyError: Deserialize<'c> + Debug,
{ // Required methods fn health(self) -> Result<Chain<'c, S, ReplyParams, ReplyError>>; fn read<'__proxy_params>( self, path: &'__proxy_params str, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>; fn query<'__proxy_params>( self, root: Option<&'__proxy_params str>, depth: Option<u32>, include_values: bool, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>; fn update<'__proxy_params>( self, path: &'__proxy_params str, value: &'__proxy_params Value, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>; }
Available on crate feature client only.
Expand description

Extension trait for adding proxy calls to any chain.

This trait provides methods to add proxy calls to a chain of method calls.

Required Methods§

fn health(self) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

Add a #method_name call to this chain.

fn read<'__proxy_params>( self, path: &'__proxy_params str, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

Add a #method_name call to this chain.

fn query<'__proxy_params>( self, root: Option<&'__proxy_params str>, depth: Option<u32>, include_values: bool, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

Add a #method_name call to this chain.

fn update<'__proxy_params>( self, path: &'__proxy_params str, value: &'__proxy_params Value, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

Add a #method_name call to this chain.

Implementations on Foreign Types§

§

impl<'c, S, ReplyParams, ReplyError> LelumProxyChain<'c, S, ReplyParams, ReplyError> for Chain<'c, S, ReplyParams, ReplyError>
where S: Socket, ReplyParams: Deserialize<'c> + Debug, ReplyError: Deserialize<'c> + Debug,

§

fn health(self) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

§

fn read<'__proxy_params>( self, path: &'__proxy_params str, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

§

fn query<'__proxy_params>( self, root: Option<&'__proxy_params str>, depth: Option<u32>, include_values: bool, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

§

fn update<'__proxy_params>( self, path: &'__proxy_params str, value: &'__proxy_params Value, ) -> Result<Chain<'c, S, ReplyParams, ReplyError>>

Implementors§