Struct nostr_sdk::relay::RelayPoolOptions
source · pub struct RelayPoolOptions {
pub notification_channel_size: usize,
pub task_channel_size: usize,
pub task_max_seen_events: usize,
pub shutdown_on_drop: bool,
}
Expand description
Relay Pool Options
Fields§
§notification_channel_size: usize
Notification channel size (default: 1024)
task_channel_size: usize
Task channel size (default: 1024)
task_max_seen_events: usize
Max seen events by Task thread (default: 1_000_000)
A lower number can cause receiving in notification channel the same event multiple times
shutdown_on_drop: bool
Shutdown on RelayPool drop
Implementations§
Trait Implementations§
source§impl Clone for RelayPoolOptions
impl Clone for RelayPoolOptions
source§fn clone(&self) -> RelayPoolOptions
fn clone(&self) -> RelayPoolOptions
Returns a copy of the value. Read more
1.0.0 · 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 RelayPoolOptions
impl Debug for RelayPoolOptions
source§impl Default for RelayPoolOptions
impl Default for RelayPoolOptions
impl Copy for RelayPoolOptions
Auto Trait Implementations§
impl RefUnwindSafe for RelayPoolOptions
impl Send for RelayPoolOptions
impl Sync for RelayPoolOptions
impl Unpin for RelayPoolOptions
impl UnwindSafe for RelayPoolOptions
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