pub struct ClientOptions {
pub cov_channel_capacity: usize,
pub event_channel_capacity: usize,
/* private fields */
}Expand description
Additional client startup options.
Fields§
§cov_channel_capacity: usizeCapacity of the COV notification broadcast channel.
Slow receivers lag once more than this many notifications arrive before
they call recv(). The default preserves the historical fixed capacity
of 64.
event_channel_capacity: usizeCapacity of the independent event notification broadcast channel (default 64). Slow receivers observe lag; valid confirmed notifications are still acknowledged.
Implementations§
Source§impl ClientOptions
impl ClientOptions
Sourcepub fn with_confirmed_cov_notification_ack_policy<F>(self, policy: F) -> Self
pub fn with_confirmed_cov_notification_ack_policy<F>(self, policy: F) -> Self
Set a callback that chooses how to answer decoded ConfirmedCOVNotifications.
Source§impl ClientOptions
impl ClientOptions
Sourcepub fn with_event_channel_capacity(self, capacity: usize) -> Self
pub fn with_event_channel_capacity(self, capacity: usize) -> Self
Set the independent event notification channel capacity.
Values outside 1..=MAX_EVENT_CHANNEL_CAPACITY fail at startup.
Source§impl ClientOptions
impl ClientOptions
Sourcepub fn with_cov_channel_capacity(self, capacity: usize) -> Self
pub fn with_cov_channel_capacity(self, capacity: usize) -> Self
Set the COV notification broadcast channel capacity.
Trait Implementations§
Source§impl Clone for ClientOptions
impl Clone for ClientOptions
Source§impl Debug for ClientOptions
impl Debug for ClientOptions
Auto Trait Implementations§
impl !RefUnwindSafe for ClientOptions
impl !UnwindSafe for ClientOptions
impl Freeze for ClientOptions
impl Send for ClientOptions
impl Sync for ClientOptions
impl Unpin for ClientOptions
impl UnsafeUnpin for ClientOptions
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