pub struct ClientSession<'a> {
pub profile: Profile,
pub expected_node_id: [u8; 32],
pub leaf: &'a [u8],
pub identity_key: Vec<u8>,
pub connect_key: &'a NodeKey,
pub connect_binding: &'a SignedTbs,
pub connect_status: &'a SignedTbs,
pub capabilities: u64,
pub now_ms: i64,
pub member_endorsement: Vec<u8>,
}Expand description
What a client brings to a handshake: its profile, the node_id it dialed, the leaf DER it received in this TLS handshake, its carried identity key, its CONNECT key with binding and status statement, its capability bits, the time in milliseconds, and the realm membership endorsement CONNECT carries, empty for a node that holds none.
Fields§
§profile: Profile§expected_node_id: [u8; 32]§leaf: &'a [u8]§identity_key: Vec<u8>§connect_key: &'a NodeKey§connect_binding: &'a SignedTbs§connect_status: &'a SignedTbs§capabilities: u64§now_ms: i64§member_endorsement: Vec<u8>Auto Trait Implementations§
impl<'a> Freeze for ClientSession<'a>
impl<'a> RefUnwindSafe for ClientSession<'a>
impl<'a> Send for ClientSession<'a>
impl<'a> Sync for ClientSession<'a>
impl<'a> Unpin for ClientSession<'a>
impl<'a> UnsafeUnpin for ClientSession<'a>
impl<'a> UnwindSafe for ClientSession<'a>
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