pub struct AsyncSessionManager { /* private fields */ }Expand description
Async session manager.
Implementations§
Source§impl AsyncSessionManager
impl AsyncSessionManager
Sourcepub fn spawn(coord: Arc<Mutex<Coordinator>>) -> Self
pub fn spawn(coord: Arc<Mutex<Coordinator>>) -> Self
Create a new async session manager wrapping the coordinator.
Sourcepub fn create_session(&self, request: SessionRequest)
pub fn create_session(&self, request: SessionRequest)
Asynchronously create a session.
Sourcepub fn submit_commitment(
&self,
session_id: &str,
signer_id: &str,
bytes: Vec<u8>,
)
pub fn submit_commitment( &self, session_id: &str, signer_id: &str, bytes: Vec<u8>, )
Asynchronously submit a commitment.
Asynchronously submit a share.
Auto Trait Implementations§
impl Freeze for AsyncSessionManager
impl RefUnwindSafe for AsyncSessionManager
impl Send for AsyncSessionManager
impl Sync for AsyncSessionManager
impl Unpin for AsyncSessionManager
impl UnsafeUnpin for AsyncSessionManager
impl UnwindSafe for AsyncSessionManager
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