pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn new( local: &str, remote: &str, bootstrap: &SessionBootstrap, ) -> Result<Self>
pub fn conversation_id(&self) -> Uuid
pub fn local_id(&self) -> &str
pub fn remote_id(&self) -> &str
pub fn encrypt_message(&mut self, message: &Message) -> Result<Vec<u8>>
pub fn decrypt_packet(&mut self, packet: &[u8]) -> Result<Message>
pub fn handle_attachment_message( &mut self, message: &Message, ) -> Result<Option<AttachmentUpdate>>
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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