pub struct SessionOptions { /* private fields */ }Expand description
Finite negotiation inputs retained under one caller-derived deadline.
Implementations§
Source§impl SessionOptions
impl SessionOptions
Sourcepub fn new(
deadline: AbsoluteDeadline,
executable_identity: ExecutableIdentityPolicy,
) -> Self
pub fn new( deadline: AbsoluteDeadline, executable_identity: ExecutableIdentityPolicy, ) -> Self
Creates an exact-deadline offer with finite default limits.
Sourcepub fn with_limits(self, limits: SessionLimits) -> Self
pub fn with_limits(self, limits: SessionLimits) -> Self
Replaces the finite local limit offer.
Sourcepub fn with_application_payload(self, payload: Vec<u8>) -> Self
pub fn with_application_payload(self, payload: Vec<u8>) -> Self
Replaces the bounded opaque application HELLO payload.
Sourcepub fn require_atomic_u32(self) -> Self
pub fn require_atomic_u32(self) -> Self
Requires lock-free cross-process 32-bit atomic support.
Sourcepub fn require_atomic_u64(self) -> Self
pub fn require_atomic_u64(self) -> Self
Requires lock-free cross-process 64-bit atomic support.
Trait Implementations§
Source§impl Clone for SessionOptions
impl Clone for SessionOptions
Source§fn clone(&self) -> SessionOptions
fn clone(&self) -> SessionOptions
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 SessionOptions
impl Debug for SessionOptions
impl Eq for SessionOptions
Source§impl PartialEq for SessionOptions
impl PartialEq for SessionOptions
impl StructuralPartialEq for SessionOptions
Auto Trait Implementations§
impl Freeze for SessionOptions
impl RefUnwindSafe for SessionOptions
impl Send for SessionOptions
impl Sync for SessionOptions
impl Unpin for SessionOptions
impl UnsafeUnpin for SessionOptions
impl UnwindSafe for SessionOptions
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