pub struct HandshakeRequest {
pub authentication: String,
pub encryption: Encryption,
}Expand description
The handshake message between agent and proxy. When the tcp connection created between agent and proxy, the handshake will happen as the first message used to communicate the authentication information and exchange the encryption key.
The encryption key is encrypted with RSA private key which assigned to each user. The other side should decrypt the encryption key with RSA public key to raw key.
Fields§
§authentication: StringThe authentication information, usually it should be a JWT or a username, or even username&password with some kind of format
encryption: EncryptionThe encryption used to carry the encryption key
Trait Implementations§
Source§impl Clone for HandshakeRequest
impl Clone for HandshakeRequest
Source§fn clone(&self) -> HandshakeRequest
fn clone(&self) -> HandshakeRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HandshakeRequest
impl Debug for HandshakeRequest
Source§impl<'de> Deserialize<'de> for HandshakeRequest
impl<'de> Deserialize<'de> for HandshakeRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandshakeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HandshakeRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for HandshakeRequest
impl Serialize for HandshakeRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl !Freeze for HandshakeRequest
impl RefUnwindSafe for HandshakeRequest
impl Send for HandshakeRequest
impl Sync for HandshakeRequest
impl Unpin for HandshakeRequest
impl UnwindSafe for HandshakeRequest
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