pub struct SessionBuilder { /* private fields */ }
Expand description
Create a new session.
Implementations§
Source§impl SessionBuilder
impl SessionBuilder
Sourcepub fn new(
ctx: &Context,
store_context: &StoreContext,
address: &Address,
) -> SessionBuilder
pub fn new( ctx: &Context, store_context: &StoreContext, address: &Address, ) -> SessionBuilder
Create a new session builder for communication with the user with the specified address.
Sourcepub fn process_pre_key_bundle(
&self,
pre_key_bundle: &PreKeyBundle,
) -> Result<(), InternalError>
pub fn process_pre_key_bundle( &self, pre_key_bundle: &PreKeyBundle, ) -> Result<(), InternalError>
Build a session using a pre-key retrieved from the server.
Trait Implementations§
Source§impl Debug for SessionBuilder
impl Debug for SessionBuilder
Auto Trait Implementations§
impl Freeze for SessionBuilder
impl RefUnwindSafe for SessionBuilder
impl !Send for SessionBuilder
impl !Sync for SessionBuilder
impl Unpin for SessionBuilder
impl UnwindSafe for SessionBuilder
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