pub struct Session {
pub uuid: Uuid,
pub kind: SessionKind,
pub value: Option<Value>,
/* private fields */
}
Expand description
Session used for key generation or signing communication.
Fields§
§uuid: Uuid
Unique identifier for the session.
kind: SessionKind
Kind of the session.
value: Option<Value>
Public value associated with the session.
The owner of a session will assign this when the session is created and other participants in the session can read this value.
This can be used to assign public data like the message or transaction that will be signed during a signing session.
Implementations§
Source§impl Session
impl Session
Sourcepub fn signup(&mut self, conn: usize) -> u16
pub fn signup(&mut self, conn: usize) -> u16
Signup to a session.
This marks a connected client as actively participating in this session and issues them a unique party signup number.
Trait Implementations§
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§
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