pub struct NewRoom;Expand description
Contains endpoints relating to creating or joining rooms.
Implementations§
Source§impl NewRoom
impl NewRoom
Sourcepub fn from_alias<R: MatrixRequestable>(
cli: &mut R,
alias: &str,
) -> impl Future<Item = Room<'static>, Error = MatrixError>
pub fn from_alias<R: MatrixRequestable>( cli: &mut R, alias: &str, ) -> impl Future<Item = Room<'static>, Error = MatrixError>
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.
Sourcepub fn join<R: MatrixRequestable>(
cli: &mut R,
room: &str,
) -> impl Future<Item = Room<'static>, Error = MatrixError>
pub fn join<R: MatrixRequestable>( cli: &mut R, room: &str, ) -> impl Future<Item = Room<'static>, Error = MatrixError>
Joins a room by identifier or alias.
Sourcepub fn create<R: MatrixRequestable>(
cli: &mut R,
opts: RoomCreationOptions,
) -> impl Future<Item = Room<'static>, Error = MatrixError>
pub fn create<R: MatrixRequestable>( cli: &mut R, opts: RoomCreationOptions, ) -> impl Future<Item = Room<'static>, Error = MatrixError>
Creates a room, with given options.
Auto Trait Implementations§
impl Freeze for NewRoom
impl RefUnwindSafe for NewRoom
impl Send for NewRoom
impl Sync for NewRoom
impl Unpin for NewRoom
impl UnwindSafe for NewRoom
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more