pub struct Options { /* private fields */ }Expand description
Options
Implementations§
source§impl Options
impl Options
sourcepub fn wait_for_connection(self, wait: bool) -> Self
pub fn wait_for_connection(self, wait: bool) -> Self
If set to true, Client wait that Relay try at least one time to enstablish a connection before continue.
sourcepub fn wait_for_send(self, wait: bool) -> Self
pub fn wait_for_send(self, wait: bool) -> Self
If set to true, Client wait that an event is sent before continue.
sourcepub fn wait_for_subscription(self, wait: bool) -> Self
pub fn wait_for_subscription(self, wait: bool) -> Self
If set to true, Client wait that a subscription msg is sent before continue (subscribe and unsubscribe methods)
sourcepub fn difficulty(self, difficulty: u8) -> Self
pub fn difficulty(self, difficulty: u8) -> Self
Set default POW diffficulty for Event
sourcepub fn req_filters_chunk_size(self, size: u8) -> Self
pub fn req_filters_chunk_size(self, size: u8) -> Self
Set REQ filters chunk size
sourcepub fn nip46_timeout(self, timeout: Option<Duration>) -> Self
pub fn nip46_timeout(self, timeout: Option<Duration>) -> Self
Set NIP46 timeout
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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