client: Fix crate docs
This commit is contained in:
parent
15c9e470c8
commit
b956178c53
@ -40,7 +40,7 @@
|
|||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! For the standard use case of synchronizing with the homeserver (i.e. getting all the latest
|
//! For the standard use case of synchronizing with the homeserver (i.e. getting all the latest
|
||||||
//! events), use the `Client::sync`:
|
//! events), use the `Client::sync` method:
|
||||||
//!
|
//!
|
||||||
//! ```ignore
|
//! ```ignore
|
||||||
//! use std::time::Duration;
|
//! use std::time::Duration;
|
||||||
@ -69,10 +69,8 @@
|
|||||||
//! one with the given homeserver.
|
//! one with the given homeserver.
|
||||||
//!
|
//!
|
||||||
//! Beyond these basic convenience methods, `ruma-client` gives you access to the entire Matrix
|
//! Beyond these basic convenience methods, `ruma-client` gives you access to the entire Matrix
|
||||||
//! client-server API via the `api` module. Each leaf module under this tree of modules contains
|
//! client-server API via the `request` method. You can pass it any of the `Request` types found in
|
||||||
//! the necessary types for one API endpoint. Simply call the module's `call` method, passing it
|
//! `ruma::api::*` and get back a corresponding response from the homeserver.
|
||||||
//! the logged in `Client` and the relevant `Request` type. `call` will return a future that will
|
|
||||||
//! resolve to the relevant `Response` type.
|
|
||||||
//!
|
//!
|
||||||
//! For example:
|
//! For example:
|
||||||
//!
|
//!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user