pub struct RelayResolutionConfig {
pub configured_relay_urls: Vec<String>,
pub hinted_relay_urls: Vec<String>,
pub discovery_relay_urls: Vec<String>,
pub fallback_operational_relay_urls: Vec<String>,
pub server_pubkey: PublicKey,
pub signer: Arc<dyn NostrSigner>,
pub timeout: Duration,
}Expand description
Inputs for multi-stage relay resolution.
Fields§
§configured_relay_urls: Vec<String>Explicitly configured relay URLs (stage 1).
hinted_relay_urls: Vec<String>Relay hints from nprofile identity (stage 2).
discovery_relay_urls: Vec<String>Bootstrap relays for CEP-17 kind 10002 discovery (stage 4).
fallback_operational_relay_urls: Vec<String>Fallback relays probed in parallel with discovery (stage 4).
server_pubkey: PublicKeyServer public key for kind 10002 filter.
signer: Arc<dyn NostrSigner>Signer for temporary relay pool connections.
timeout: DurationTimeout for discovery and fallback probing.
Auto Trait Implementations§
impl !RefUnwindSafe for RelayResolutionConfig
impl !UnwindSafe for RelayResolutionConfig
impl Freeze for RelayResolutionConfig
impl Send for RelayResolutionConfig
impl Sync for RelayResolutionConfig
impl Unpin for RelayResolutionConfig
impl UnsafeUnpin for RelayResolutionConfig
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more