Enum mpc_protocol::RequestMessage
source · pub enum RequestMessage {
Transparent(TransparentMessage),
Opaque(OpaqueMessage),
// some variants omitted
}
Expand description
Request message sent to the server or another peer.
Variants§
Transparent(TransparentMessage)
Transparent message used for the handshake(s).
Opaque(OpaqueMessage)
Opaque encrypted messages.
Trait Implementations§
source§impl Debug for RequestMessage
impl Debug for RequestMessage
source§impl Decodable for RequestMessage
impl Decodable for RequestMessage
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 RequestMessage
impl Default for RequestMessage
source§fn default() -> RequestMessage
fn default() -> RequestMessage
Returns the “default value” for a type. Read more
source§impl Encodable for RequestMessage
impl Encodable for RequestMessage
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.
source§impl From<&RequestMessage> for u8
impl From<&RequestMessage> for u8
source§fn from(value: &RequestMessage) -> Self
fn from(value: &RequestMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for RequestMessage
impl Send for RequestMessage
impl Sync for RequestMessage
impl Unpin for RequestMessage
impl UnwindSafe for RequestMessage
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