Trait glitch_in_the_matrix::room::RoomExt [] [src]

pub trait RoomExt<'a> {
    fn from_alias(cli: &mut MatrixClient, alias: &str) -> MatrixFuture<Self>;
fn cli<'b, 'c>(
        &'b self,
        cli: &'c mut MatrixClient
    ) -> RoomClient<'b, 'a, 'c>; }

Trait used to implement methods on Room.

This exists because Room is defined in another crate (gm-types), which has no knowledge of MatrixClient. It contains most of the interesting methods for Room - most notably, you can make a RoomClient, which is how you actually do anything room-related.

Required Methods

Requests that the server resolve a room alias to a room (ID).

The server will use the federation API to resolve the alias if the domain part of the alias does not correspond to the server's own domain.

Use a MatrixClient to make a RoomClient, an object used to call endpoints relating to rooms.

If you want to do pretty much anything with this Room, you probably want to call this at some point.

Implementors