pub struct BenchOpts {
pub url: Url,
pub count: usize,
pub rate: usize,
pub keepalive: u64,
pub threads: usize,
pub interface: Option<Vec<SocketAddr>>,
}
Expand description
Connection options
Fields§
§url: Url
Nostr relay host url
count: usize
Max count of clients
rate: usize
Start open connection rate every second
keepalive: u64
Close connection after second, ignore when set to 0
threads: usize
Set the amount of threads, default 0 will use all system available cores
interface: Option<Vec<SocketAddr>>
Network interface address list
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BenchOpts
impl RefUnwindSafe for BenchOpts
impl Send for BenchOpts
impl Sync for BenchOpts
impl Unpin for BenchOpts
impl UnwindSafe for BenchOpts
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