pub struct SessionConfig {
pub self_actor: String,
pub peer_hint: Option<String>,
pub self_hint: Option<String>,
pub identity_priv: [u8; 32],
pub identity_pub: [u8; 32],
pub preferred_suite: Option<String>,
pub supported_suites: Option<Vec<String>>,
pub identity_mldsa_priv: Option<Vec<u8>>,
pub identity_mldsa_pub: Option<Vec<u8>>,
pub eph_seed: Option<[u8; 32]>,
pub session_id_seed: Option<[u8; 16]>,
}Fields§
§self_actor: String§peer_hint: Option<String>§self_hint: Option<String>Optional self-claimed actor URI advertised in HelloI / HelloR.
identity_priv: [u8; 32]§identity_pub: [u8; 32]§preferred_suite: Option<String>Preferred suite. Default: SESSION_SUITE.
supported_suites: Option<Vec<String>>Suites this peer is willing to accept; defaults to KNOWN_SESSION_SUITES.
identity_mldsa_priv: Option<Vec<u8>>ml-dsa-65 secret key. Required when the negotiated suite is hybrid.
identity_mldsa_pub: Option<Vec<u8>>ml-dsa-65 public key. Required when the negotiated suite is hybrid.
eph_seed: Option<[u8; 32]>§session_id_seed: Option<[u8; 16]>Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionConfig
impl Debug for SessionConfig
Source§impl Default for SessionConfig
impl Default for SessionConfig
Source§fn default() -> SessionConfig
fn default() -> SessionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more