pub struct Client {
pub me: OwnedUserId,
pub data: StorageData,
/* private fields */
}
Fields§
§me: OwnedUserId
§data: StorageData
Implementations§
Source§impl Client
impl Client
pub async fn new( host: impl Into<String>, username: impl Into<String>, server_name: impl Into<String>, authentication: Authentication, ) -> Self
pub fn room_list_updated(&mut self) -> bool
pub async fn get_correct_host(host: String) -> String
pub fn get_me(&self) -> OwnedUserId
pub async fn join_room_id(&self, room_id: OwnedRoomId) -> Response
pub async fn sync(&mut self) -> Result<Response, ()>
pub async fn join_with_alias(&self, alias: impl Into<String>)
pub async fn leave_room_id(&mut self, room_id: OwnedRoomId) -> Response
pub async fn room_id_from_alias(&self, alias: impl Into<String>) -> OwnedRoomId
pub async fn send_message( &mut self, room_id: OwnedRoomId, message: impl Into<String>, ) -> Response
pub fn extract_data(&mut self, sync_results: Response) -> Vec<MessageInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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