pub struct RpcClient(/* private fields */);Implementations§
Source§impl RpcClient
impl RpcClient
pub fn remote(endpoint: Endpoint, id: Id) -> Result<Self, SignatureError>
pub fn new(client: Client<RpcProto>) -> Self
pub async fn set(&self, key: Id, value: Value) -> Result<SetResponse>
pub async fn get_all( &self, key: Id, kind: Kind, seed: Option<NonZeroU64>, n: Option<NonZeroU64>, ) -> Result<Receiver<Value>>
pub async fn find_node( &self, id: Id, requester: Option<NodeId>, ) -> Result<Vec<NodeAddr>>
pub fn downgrade(&self) -> WeakRpcClient
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcClient
impl !UnwindSafe for RpcClient
impl Freeze for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl UnsafeUnpin for RpcClient
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