pub struct SessionBuilder<T: SessionStorage> { /* private fields */ }Implementations§
Source§impl<T: SessionStorage + 'static> SessionBuilder<T>
impl<T: SessionStorage + 'static> SessionBuilder<T>
pub fn new(storage: Arc<T>, protocol_address: ProtocolAddress) -> Self
pub async fn init_outgoing( &self, device: Device, ) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn init_incoming( &self, record: &mut SessionRecord, message: &PreKeyWhisperMessage, ) -> Result<Option<u32>, Box<dyn Error + Send + Sync>>
Auto Trait Implementations§
impl<T> Freeze for SessionBuilder<T>
impl<T> RefUnwindSafe for SessionBuilder<T>where
T: RefUnwindSafe,
impl<T> Send for SessionBuilder<T>
impl<T> Sync for SessionBuilder<T>
impl<T> Unpin for SessionBuilder<T>
impl<T> UnwindSafe for SessionBuilder<T>where
T: RefUnwindSafe,
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