Struct mpc_relay_protocol::SessionRequest
source · pub struct SessionRequest {
pub participant_keys: Vec<Vec<u8>>,
}
Expand description
Request to create a new session.
Do no include the public key of the initiator as it is automatically added as the session owner.
Fields§
§participant_keys: Vec<Vec<u8>>
Public keys of the session participants.
Trait Implementations§
source§impl Debug for SessionRequest
impl Debug for SessionRequest
source§impl Decodable for SessionRequest
impl Decodable for SessionRequest
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 SessionRequest
impl Default for SessionRequest
source§fn default() -> SessionRequest
fn default() -> SessionRequest
Returns the “default value” for a type. Read more
source§impl Encodable for SessionRequest
impl Encodable for SessionRequest
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 SessionRequest
impl Send for SessionRequest
impl Sync for SessionRequest
impl Unpin for SessionRequest
impl UnwindSafe for SessionRequest
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