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§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<()>> + 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<&TransparentMessage> for u8
impl From<&TransparentMessage> for u8
Source§fn from(value: &TransparentMessage) -> Self
fn from(value: &TransparentMessage) -> Self
Converts to this type from the input type.
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