pub struct DirectMessageService { /* private fields */ }Implementations§
Source§impl DirectMessageService
impl DirectMessageService
pub fn memory() -> Self
pub fn memory_for_local_device( owner_public_key: PublicKey, device_keys: &Keys, ) -> Self
pub fn open(data_dir: &Path, owner_keys: Option<&Keys>) -> Self
pub fn open_for_local_device( data_dir: &Path, owner_public_key: PublicKey, device_keys: &Keys, ) -> Self
pub fn activate(&mut self, keys: &Keys) -> Vec<DirectMessageCommand>
pub fn last_error(&self) -> Option<String>
pub fn chats(&self) -> Vec<DirectChatSnapshot>
pub fn thread(&self, chat_id: &str) -> Option<DirectThreadSnapshot>
pub fn open_chat( &mut self, peer_input: &str, keys: &Keys, ) -> Result<(DirectThreadSnapshot, Vec<DirectMessageCommand>), String>
pub fn accept_invite( &mut self, invite_input: &str, keys: &Keys, ) -> Result<(DirectThreadSnapshot, Vec<DirectMessageCommand>), String>
pub fn accept_invite_with_status( &mut self, invite_input: &str, _keys: &Keys, ) -> Result<DirectInviteAcceptanceOutcome, String>
pub fn send_message( &mut self, chat_id: &str, body: &str, _keys: &Keys, ) -> Result<Vec<DirectMessageCommand>, String>
pub fn process_event( &mut self, event: Event, _keys: &Keys, ) -> Vec<DirectMessageCommand>
pub fn local_invite_event(&self, device_keys: &Keys) -> Option<Event>
Auto Trait Implementations§
impl !Freeze for DirectMessageService
impl !RefUnwindSafe for DirectMessageService
impl !Sync for DirectMessageService
impl !UnwindSafe for DirectMessageService
impl Send for DirectMessageService
impl Unpin for DirectMessageService
impl UnsafeUnpin for DirectMessageService
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