pub struct CakeClient { /* private fields */ }
Implementations§
Source§impl CakeClient
impl CakeClient
pub fn new( svc_prefix: String, svc_name: String, reg_typ: String, reg_addr: String, selector_typ: SelectorTyp, failmode: FailMode, ) -> Self
pub async fn call( &mut self, method: &str, params: &[Value], ) -> CakeResult<String>
pub async fn wrap_call( &mut self, method: &str, params: &[Value], ) -> CakeResult<String>
Trait Implementations§
Source§impl Clone for CakeClient
impl Clone for CakeClient
Source§fn clone(&self) -> CakeClient
fn clone(&self) -> CakeClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for CakeClient
impl<'de> Deserialize<'de> for CakeClient
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CakeClient
impl RefUnwindSafe for CakeClient
impl Send for CakeClient
impl Sync for CakeClient
impl Unpin for CakeClient
impl UnwindSafe for CakeClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more