pub enum TransparentMessage {
Error(StatusCode, String),
ServerHandshake(HandshakeMessage),
PeerHandshake {
public_key: Vec<u8>,
message: HandshakeMessage,
},
// some variants omitted
}
Expand description
Transparent messages are not encrypted.
Variants§
Error(StatusCode, String)
Return an error message to the client.
ServerHandshake(HandshakeMessage)
Handshake message.
PeerHandshake
Relayed peer handshake message.
Trait Implementations§
Source§impl Debug for TransparentMessage
impl Debug for TransparentMessage
Source§impl Decodable for TransparentMessage
impl Decodable for TransparentMessage
Source§fn decode<'life0, 'life1, 'async_trait, R>(
&'life0 mut self,
reader: &'life1 mut BinaryReader<R>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
TransparentMessage: 'async_trait,
fn decode<'life0, 'life1, 'async_trait, R>(
&'life0 mut self,
reader: &'life1 mut BinaryReader<R>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
R: 'async_trait + AsyncRead + AsyncSeek + Unpin + Send,
TransparentMessage: 'async_trait,
Decode from the binary reader into self.
Source§impl Default for TransparentMessage
impl Default for TransparentMessage
Source§fn default() -> TransparentMessage
fn default() -> TransparentMessage
Returns the “default value” for a type. Read more
Source§impl Encodable for TransparentMessage
impl Encodable for TransparentMessage
Source§fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
TransparentMessage: 'async_trait,
fn encode<'life0, 'life1, 'async_trait, W>(
&'life0 self,
writer: &'life1 mut BinaryWriter<W>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
W: 'async_trait + AsyncWrite + AsyncSeek + Unpin + Send,
TransparentMessage: 'async_trait,
Encode self into the binary writer.
Auto Trait Implementations§
impl Freeze for TransparentMessage
impl RefUnwindSafe for TransparentMessage
impl Send for TransparentMessage
impl Sync for TransparentMessage
impl Unpin for TransparentMessage
impl UnwindSafe for TransparentMessage
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