pub struct MessengerClient { /* private fields */ }Implementations§
Source§impl MessengerClient
impl MessengerClient
pub fn new(local: LocalIdentity, transport: Arc<dyn Transport>) -> Self
pub fn ensure_session_with( &mut self, remote: &str, bootstrap: SessionBootstrap, ) -> Result<()>
pub async fn send_text(&mut self, remote: &str, text_utf8: &str) -> Result<Uuid>
pub async fn send_attachment_bytes( &mut self, remote: &str, kind: AttachmentKind, filename: Option<&str>, content_type: Option<&str>, bytes: &[u8], chunk_size: usize, ) -> Result<Uuid>
pub async fn poll_once(&mut self) -> Result<Option<ClientEvent>>
pub async fn close(&self) -> Result<()>
Auto Trait Implementations§
impl Freeze for MessengerClient
impl !RefUnwindSafe for MessengerClient
impl Send for MessengerClient
impl Sync for MessengerClient
impl Unpin for MessengerClient
impl !UnwindSafe for MessengerClient
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more