pub struct DirectMessageService { /* private fields */ }Implementations§
Source§impl DirectMessageService
impl DirectMessageService
pub fn memory() -> Self
pub fn open(data_dir: &Path, owner_keys: Option<&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 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>
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