pub enum Message {
HeartBeat([u8; 32]),
HeartBeatEcho([u8; 32]),
NewClient(u128),
}
Expand description
Messages transferred through the initial TLS stream between proxy and server
Variants§
HeartBeat([u8; 32])
Proxy request to server to echo back these bytes
HeartBeatEcho([u8; 32])
Server response to heartbeat request, echoing back requested bytes
NewClient(u128)
Request from proxy to server telling server to open the TCP stream that the client connection will be proxied through.
Trait Implementations§
Source§impl BincodeAsync<'_> for Message
impl BincodeAsync<'_> for Message
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Message
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Message
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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