Struct mpc_relay_protocol::SessionState
source · pub struct SessionState {
pub session_id: SessionId,
pub all_participants: Vec<Vec<u8>>,
}
Expand description
Response from creating new session.
Fields§
§session_id: SessionId
Session identifier.
all_participants: Vec<Vec<u8>>
Public keys of all participants.
Implementations§
source§impl SessionState
impl SessionState
sourcepub fn connections(&self, own_key: &[u8]) -> &[Vec<u8>]
pub fn connections(&self, own_key: &[u8]) -> &[Vec<u8>]
Get the connections a peer should make.
Trait Implementations§
source§impl Clone for SessionState
impl Clone for SessionState
source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SessionState
impl Debug for SessionState
source§impl Decodable for SessionState
impl Decodable for SessionState
source§fn decode<'life0, 'life1, 'async_trait, R>(
&'life0 mut self,
reader: &'life1 mut BinaryReader<R>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn decode<'life0, 'life1, 'async_trait, R>( &'life0 mut self, reader: &'life1 mut BinaryReader<R> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Decode from the binary reader into self.
source§impl Default for SessionState
impl Default for SessionState
source§fn default() -> SessionState
fn default() -> SessionState
Returns the “default value” for a type. Read more
source§impl Encodable for SessionState
impl Encodable for SessionState
source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>( &'life0 self, writer: &'life1 mut BinaryWriter<W> ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Encode self into the binary writer.
Auto Trait Implementations§
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnwindSafe for SessionState
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