Struct nostr_sdk::relay::RelaySendOptions
source · pub struct RelaySendOptions {
pub skip_disconnected: bool,
pub timeout: Duration,
}
Expand description
Relay
send options
Fields§
§skip_disconnected: bool
Skip wait for disconnected relay (default: true)
timeout: Duration
Timeout for sending event (default: 10 secs)
Implementations§
source§impl RelaySendOptions
impl RelaySendOptions
sourcepub fn new() -> Self
pub fn new() -> Self
New default RelaySendOptions
sourcepub fn skip_disconnected(self, value: bool) -> Self
pub fn skip_disconnected(self, value: bool) -> Self
Skip wait for disconnected relay (default: true)
Trait Implementations§
source§impl Clone for RelaySendOptions
impl Clone for RelaySendOptions
source§fn clone(&self) -> RelaySendOptions
fn clone(&self) -> RelaySendOptions
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 RelaySendOptions
impl Debug for RelaySendOptions
source§impl Default for RelaySendOptions
impl Default for RelaySendOptions
impl Copy for RelaySendOptions
Auto Trait Implementations§
impl RefUnwindSafe for RelaySendOptions
impl Send for RelaySendOptions
impl Sync for RelaySendOptions
impl Unpin for RelaySendOptions
impl UnwindSafe for RelaySendOptions
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