pub struct HandshakeParams {
pub token: Option<String>,
}Expand description
handshake request params — the per-process auth token the server printed
on its discovery line (crate::format_discovery_line).
Inbound only. The token travels client→server on this one method and appears in no result, notification, or error payload the server ever writes; a client that learned it from a log line must not echo it back anywhere else.
token is optional so a client can still handshake against a server
running with auth switched off (and so a server can answer such a client’s
null params rather than failing to decode them) — a server that requires
a token answers an absent one with crate::RpcError::UNAUTHORIZED.
Fields§
§token: Option<String>Trait Implementations§
Source§impl Clone for HandshakeParams
impl Clone for HandshakeParams
Source§impl Debug for HandshakeParams
impl Debug for HandshakeParams
Source§impl Default for HandshakeParams
impl Default for HandshakeParams
Source§impl<'de> Deserialize<'de> for HandshakeParams
impl<'de> Deserialize<'de> for HandshakeParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HandshakeParams
Source§impl PartialEq for HandshakeParams
impl PartialEq for HandshakeParams
Source§impl Serialize for HandshakeParams
impl Serialize for HandshakeParams
impl StructuralPartialEq for HandshakeParams
Auto Trait Implementations§
impl Freeze for HandshakeParams
impl RefUnwindSafe for HandshakeParams
impl Send for HandshakeParams
impl Sync for HandshakeParams
impl Unpin for HandshakeParams
impl UnsafeUnpin for HandshakeParams
impl UnwindSafe for HandshakeParams
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