pub struct DMs { /* private fields */ }Implementations§
Source§impl DMs
impl DMs
pub fn new(client: MatrixClient) -> Self
pub async fn update(&self) -> Result<()>
pub async fn get_or_create_dm(&self, user_id: &str) -> Result<String>
pub async fn is_dm(&self, room_id: &str) -> bool
pub async fn persist_cache(&self) -> Result<()>
pub async fn handle_invite(&self, room_id: &str, event: &Event) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DMs
impl !RefUnwindSafe for DMs
impl Send for DMs
impl Sync for DMs
impl Unpin for DMs
impl UnsafeUnpin for DMs
impl !UnwindSafe for DMs
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