pub struct RelayQueryOptions {
pub limit: usize,
pub timeout_ms: u64,
}Expand description
Query options for relay discovery.
Fields§
§limit: usizeMaximum number of events requested from each relay.
timeout_ms: u64Per-relay timeout in milliseconds.
Trait Implementations§
Source§impl Clone for RelayQueryOptions
impl Clone for RelayQueryOptions
Source§fn clone(&self) -> RelayQueryOptions
fn clone(&self) -> RelayQueryOptions
Returns a duplicate 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 RelayQueryOptions
impl Debug for RelayQueryOptions
Source§impl Default for RelayQueryOptions
impl Default for RelayQueryOptions
Source§impl<'de> Deserialize<'de> for RelayQueryOptions
impl<'de> Deserialize<'de> for RelayQueryOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RelayQueryOptions
impl PartialEq for RelayQueryOptions
Source§impl Serialize for RelayQueryOptions
impl Serialize for RelayQueryOptions
impl Eq for RelayQueryOptions
impl StructuralPartialEq for RelayQueryOptions
Auto Trait Implementations§
impl Freeze for RelayQueryOptions
impl RefUnwindSafe for RelayQueryOptions
impl Send for RelayQueryOptions
impl Sync for RelayQueryOptions
impl Unpin for RelayQueryOptions
impl UnsafeUnpin for RelayQueryOptions
impl UnwindSafe for RelayQueryOptions
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