pub async fn devices(&self) -> Result<get_devices::Response> {
        let request = get_devices::Request::new();

        self.send(request).await
    }
/// Get information of all our own devices.
///
/// # Examples
///
/// ```no_run
/// # use matrix_sdk::{Client, SyncSettings};
/// # use futures::executor::block_on;
/// # use url::Url;
/// # use std::convert::TryFrom;
/// # block_on(async {
/// # let homeserver = Url::parse("http://localhost:8080").unwrap();
/// # let mut client = Client::new(homeserver).unwrap();
/// let response = client.devices().await.expect("Can't get devices from server");
///
/// for device in response.devices {
///     println!(
///         "Device: {} {}",
///         device.device_id,
///         device.display_name.as_deref().unwrap_or("")
///     );
/// }
/// # });
/// ```
Get information of all our own devices.
Get information of all our own devices .
pub async fn devices(&self) -> Result<get_devices::Response> {
        let request = get_devices::Request::new();
        self.send(request).await
    }
pub async fn devices ( & self ) -> Result < get_devices :: Response > { let request = get_devices :: Request :: new ( ) ; self . send ( request ) . await }
Get information of all our own devices.
Get information of all our own devices .
&self
&self
examples
None
use matrix_sdk::{client, syncsettings};
None
use futures::executor::block_on;
None
use url::url;
None
use std::convert::tryfrom;
None
block_on(async {
None
let homeserver = url::parse("http://localhost:8080").unwrap();
None
let mut client = client::new(homeserver).unwrap();
let response = client.devices().await.expect("Can't get devices from server").


let response = client . devices () . await . expect ( " Can ' t get devices from server " ) .
});
None