pub struct NodeClient { /* private fields */ }Implementations§
Source§impl NodeClient
impl NodeClient
pub fn new( base_url: impl Into<String>, cfg: NodeClientConfig, ) -> Result<NodeClient>
pub fn base_url(&self) -> &str
pub async fn register(&self, req: RegisterRequest) -> Result<RegisterResponse>
pub async fn resolve(&self, user_id_hex: &str) -> Result<ResolveResponse>
pub async fn check_user(&self, user_id_hex: &str) -> Result<CheckUserResponse>
pub async fn announce(&self, presence: Presence) -> Result<Value>
pub async fn sync(&self, req: SyncRequest) -> Result<SyncResponse>
pub async fn nodes(&self) -> Result<NodesPayload>
pub async fn add_nodes(&self, payload: NodesPayload) -> Result<Value>
Auto Trait Implementations§
impl Freeze for NodeClient
impl !RefUnwindSafe for NodeClient
impl Send for NodeClient
impl Sync for NodeClient
impl Unpin for NodeClient
impl !UnwindSafe for NodeClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more