radroots_transport_nostr.txt (15725B)
1 pub mod radroots_transport_nostr 2 #[non_exhaustive] pub enum radroots_transport_nostr::Error 3 pub radroots_transport_nostr::Error::AuthChallengeConflict 4 pub radroots_transport_nostr::Error::AuthChallengeExpired 5 pub radroots_transport_nostr::Error::AuthChallengeMissing 6 pub radroots_transport_nostr::Error::AuthRejected 7 pub radroots_transport_nostr::Error::AuthResponseInvalid 8 pub radroots_transport_nostr::Error::AuthResponseMismatch 9 pub radroots_transport_nostr::Error::AuthSignerUnavailable 10 pub radroots_transport_nostr::Error::AuthStateUnavailable 11 pub radroots_transport_nostr::Error::AuthTransport 12 pub radroots_transport_nostr::Error::DuplicateRelayUrl 13 pub radroots_transport_nostr::Error::EmptyRelaySet 14 pub radroots_transport_nostr::Error::EmptyResolution 15 pub radroots_transport_nostr::Error::InvalidAuthChallenge 16 pub radroots_transport_nostr::Error::InvalidConnectionLimit 17 pub radroots_transport_nostr::Error::InvalidConnectionLimit::value: usize 18 pub radroots_transport_nostr::Error::InvalidReconnectBackoff 19 pub radroots_transport_nostr::Error::InvalidReconnectBackoff::initial_delay_ms: u64 20 pub radroots_transport_nostr::Error::InvalidReconnectBackoff::max_delay_ms: u64 21 pub radroots_transport_nostr::Error::InvalidRelayCursor 22 pub radroots_transport_nostr::Error::InvalidRelayUrl 23 pub radroots_transport_nostr::Error::InvalidTimeout 24 pub radroots_transport_nostr::Error::InvalidTimeout::field: &'static str 25 pub radroots_transport_nostr::Error::InvalidTimeout::value_ms: u64 26 pub radroots_transport_nostr::Error::RelayDestinationDenied 27 pub radroots_transport_nostr::Error::RelayProfilePolicyMismatch 28 pub radroots_transport_nostr::Error::RelaySchemeDenied 29 pub radroots_transport_nostr::Error::ResolvedAddressDenied 30 pub radroots_transport_nostr::Error::Target 31 pub radroots_transport_nostr::Error::TooManyRelays 32 pub radroots_transport_nostr::Error::TooManyRelays::actual: usize 33 pub radroots_transport_nostr::Error::TooManyRelays::max: usize 34 pub radroots_transport_nostr::Error::TransportClosed 35 pub radroots_transport_nostr::Error::UnexpectedTransport 36 impl core::error::Error for radroots_transport_nostr::Error 37 impl core::fmt::Display for radroots_transport_nostr::Error 38 pub fn radroots_transport_nostr::Error::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 39 #[non_exhaustive] pub enum radroots_transport_nostr::RelayAccess 40 pub radroots_transport_nostr::RelayAccess::ReadOnly 41 pub radroots_transport_nostr::RelayAccess::ReadWrite 42 impl radroots_transport_nostr::RelayAccess 43 pub const fn radroots_transport_nostr::RelayAccess::can_read(self) -> bool 44 pub const fn radroots_transport_nostr::RelayAccess::can_write(self) -> bool 45 #[non_exhaustive] pub enum radroots_transport_nostr::RelayAggregateState 46 pub radroots_transport_nostr::RelayAggregateState::Configured 47 pub radroots_transport_nostr::RelayAggregateState::Connecting 48 pub radroots_transport_nostr::RelayAggregateState::Degraded 49 pub radroots_transport_nostr::RelayAggregateState::Failed 50 pub radroots_transport_nostr::RelayAggregateState::Offline 51 pub radroots_transport_nostr::RelayAggregateState::ReadOnly 52 pub radroots_transport_nostr::RelayAggregateState::Writable 53 #[non_exhaustive] pub enum radroots_transport_nostr::RelayEvidenceState 54 pub radroots_transport_nostr::RelayEvidenceState::Available 55 pub radroots_transport_nostr::RelayEvidenceState::Connecting 56 pub radroots_transport_nostr::RelayEvidenceState::Unavailable 57 pub radroots_transport_nostr::RelayEvidenceState::Unobserved 58 pub radroots_transport_nostr::RelayEvidenceState::Unsupported 59 #[non_exhaustive] pub enum radroots_transport_nostr::RelayProfileKind 60 pub radroots_transport_nostr::RelayProfileKind::Device 61 pub radroots_transport_nostr::RelayProfileKind::Public 62 pub radroots_transport_nostr::RelayProfileKind::Simulator 63 #[non_exhaustive] pub enum radroots_transport_nostr::RelayUrlPolicy 64 pub radroots_transport_nostr::RelayUrlPolicy::Local 65 pub radroots_transport_nostr::RelayUrlPolicy::PrivateNetwork 66 pub radroots_transport_nostr::RelayUrlPolicy::Public 67 pub struct radroots_transport_nostr::Config 68 impl radroots_transport_nostr::Config 69 pub const fn radroots_transport_nostr::Config::connect_timeout_ms(&self) -> u64 70 pub fn radroots_transport_nostr::Config::endpoints(&self) -> &[radroots_transport_nostr::RelayEndpoint] 71 pub fn radroots_transport_nostr::Config::from_profile(radroots_transport_nostr::RelayProfile) -> Self 72 pub const fn radroots_transport_nostr::Config::max_connections(&self) -> usize 73 pub const fn radroots_transport_nostr::Config::profile_kind(&self) -> radroots_transport_nostr::RelayProfileKind 74 pub fn radroots_transport_nostr::Config::read_relays(&self) -> impl core::iter::traits::iterator::Iterator<Item = &radroots_transport_nostr::RelayUrl> 75 pub const fn radroots_transport_nostr::Config::reconnect_backoff(&self) -> radroots_transport_nostr::ReconnectBackoff 76 pub fn radroots_transport_nostr::Config::relays(&self) -> &[radroots_transport_nostr::RelayUrl] 77 pub const fn radroots_transport_nostr::Config::request_timeout_ms(&self) -> u64 78 pub const fn radroots_transport_nostr::Config::status_timeout_ms(&self) -> u64 79 pub fn radroots_transport_nostr::Config::with_max_connections(self, usize) -> core::result::Result<Self, radroots_transport_nostr::Error> 80 pub const fn radroots_transport_nostr::Config::with_reconnect_backoff(self, radroots_transport_nostr::ReconnectBackoff) -> Self 81 pub fn radroots_transport_nostr::Config::with_timeouts(self, u64, u64, u64) -> core::result::Result<Self, radroots_transport_nostr::Error> 82 pub fn radroots_transport_nostr::Config::write_relays(&self) -> impl core::iter::traits::iterator::Iterator<Item = &radroots_transport_nostr::RelayUrl> 83 pub struct radroots_transport_nostr::NostrTransport 84 impl radroots_transport_nostr::NostrTransport 85 pub fn radroots_transport_nostr::NostrTransport::admission_is_closed(&self) -> bool 86 pub fn radroots_transport_nostr::NostrTransport::close_admission(&self) 87 pub const fn radroots_transport_nostr::NostrTransport::config(&self) -> &radroots_transport_nostr::Config 88 pub fn radroots_transport_nostr::NostrTransport::has_in_flight_operations(&self) -> bool 89 pub fn radroots_transport_nostr::NostrTransport::new(radroots_transport_nostr::Config, alloc::sync::Arc<dyn radroots_transport::host::websocket::Connector>) -> Self 90 pub fn radroots_transport_nostr::NostrTransport::relay_status(&self) -> radroots_transport_nostr::RelayStatusReport 91 pub async fn radroots_transport_nostr::NostrTransport::shutdown(&self) 92 impl radroots_transport_nostr::NostrTransport 93 pub fn radroots_transport_nostr::NostrTransport::begin_authentication(&self, &radroots_transport_nostr::RelayUrl, impl core::convert::AsRef<str>, u64, u64) -> core::result::Result<alloc::string::String, radroots_transport_nostr::Error> 94 pub fn radroots_transport_nostr::NostrTransport::complete_authentication<'a>(&'a self, &'a radroots_transport_nostr::RelayUrl, &'a str, core::option::Option<&'a str>, u64) -> radroots_transport::source::BoxFuture<'a, core::result::Result<(), radroots_transport_nostr::Error>> 95 pub fn radroots_transport_nostr::NostrTransport::reject_authentication(&self, &radroots_transport_nostr::RelayUrl, &str) -> core::result::Result<(), radroots_transport_nostr::Error> 96 impl radroots_transport_nostr::NostrTransport 97 pub fn radroots_transport_nostr::NostrTransport::execute_prepared_delivery(&self, radroots_transport_nostr::PreparedDelivery) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::sink::DeliveryReceipt, radroots_transport::sink::SinkFailure>> 98 pub fn radroots_transport_nostr::NostrTransport::prepare_delivery(&self, radroots_transport::sink::DeliveryRequest) -> core::result::Result<radroots_transport_nostr::PreparedDelivery, alloc::boxed::Box<radroots_transport::sink::SinkFailure>> 99 pub fn radroots_transport_nostr::NostrTransport::prepare_delivery_selected(&self, radroots_transport::sink::DeliveryRequest, &radroots_transport::target::TargetSet) -> core::result::Result<radroots_transport_nostr::PreparedDelivery, alloc::boxed::Box<radroots_transport::sink::SinkFailure>> 100 impl core::fmt::Debug for radroots_transport_nostr::NostrTransport 101 pub fn radroots_transport_nostr::NostrTransport::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 102 impl radroots_transport::sink::EventSink for radroots_transport_nostr::NostrTransport 103 pub fn radroots_transport_nostr::NostrTransport::deliver(&self, radroots_transport::sink::DeliveryRequest) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::sink::DeliveryReceipt, radroots_transport::sink::SinkFailure>> 104 pub fn radroots_transport_nostr::NostrTransport::deliver_selected(&self, radroots_transport::sink::DeliveryRequest, radroots_transport::target::TargetSet) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::sink::DeliveryReceipt, radroots_transport::sink::SinkFailure>> 105 pub fn radroots_transport_nostr::NostrTransport::status(&self) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::status::SinkStatus, radroots_transport::error::Error>> 106 impl radroots_transport::source::EventSource for radroots_transport_nostr::NostrTransport 107 pub fn radroots_transport_nostr::NostrTransport::fetch(&self, radroots_transport::source::FetchRequest) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::source::FetchPage, radroots_transport::error::Error>> 108 pub fn radroots_transport_nostr::NostrTransport::status(&self) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::status::SourceStatus, radroots_transport::error::Error>> 109 impl radroots_transport::source::EventSubscriber for radroots_transport_nostr::NostrTransport 110 pub fn radroots_transport_nostr::NostrTransport::subscribe(&self, radroots_transport::source::SubscriptionRequest) -> radroots_transport::source::BoxFuture<'_, core::result::Result<radroots_transport::source::BoxSubscription, radroots_transport::error::Error>> 111 pub struct radroots_transport_nostr::PreparedDelivery 112 impl radroots_transport_nostr::PreparedDelivery 113 pub const fn radroots_transport_nostr::PreparedDelivery::request(&self) -> &radroots_transport::sink::DeliveryRequest 114 impl core::fmt::Debug for radroots_transport_nostr::PreparedDelivery 115 pub fn radroots_transport_nostr::PreparedDelivery::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result 116 pub struct radroots_transport_nostr::ReconnectBackoff 117 impl radroots_transport_nostr::ReconnectBackoff 118 pub const fn radroots_transport_nostr::ReconnectBackoff::initial_delay_ms(self) -> u64 119 pub const fn radroots_transport_nostr::ReconnectBackoff::max_delay_ms(self) -> u64 120 pub fn radroots_transport_nostr::ReconnectBackoff::new(u64, u64) -> core::result::Result<Self, radroots_transport_nostr::Error> 121 impl core::default::Default for radroots_transport_nostr::ReconnectBackoff 122 pub fn radroots_transport_nostr::ReconnectBackoff::default() -> Self 123 pub struct radroots_transport_nostr::RelayCapabilityEvidence 124 impl radroots_transport_nostr::RelayCapabilityEvidence 125 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::consecutive_failures(&self) -> u32 126 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::last_attempt_unix_ms(&self) -> core::option::Option<u64> 127 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::last_failure_retryable(&self) -> core::option::Option<bool> 128 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::last_success_unix_ms(&self) -> core::option::Option<u64> 129 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::next_attempt_unix_ms(&self) -> core::option::Option<u64> 130 pub const fn radroots_transport_nostr::RelayCapabilityEvidence::state(&self) -> radroots_transport_nostr::RelayEvidenceState 131 pub struct radroots_transport_nostr::RelayCursor 132 impl radroots_transport_nostr::RelayCursor 133 pub const fn radroots_transport_nostr::RelayCursor::created_at_unix_s(&self) -> u64 134 pub fn radroots_transport_nostr::RelayCursor::event_id(&self) -> &str 135 pub fn radroots_transport_nostr::RelayCursor::new(u64, impl core::convert::Into<alloc::string::String>) -> core::result::Result<Self, radroots_transport_nostr::Error> 136 pub fn radroots_transport_nostr::RelayCursor::precedes(&self, u64, &str) -> bool 137 pub struct radroots_transport_nostr::RelayEndpoint 138 impl radroots_transport_nostr::RelayEndpoint 139 pub const fn radroots_transport_nostr::RelayEndpoint::access(&self) -> radroots_transport_nostr::RelayAccess 140 pub fn radroots_transport_nostr::RelayEndpoint::new(impl core::convert::AsRef<str>, radroots_transport_nostr::RelayUrlPolicy, radroots_transport_nostr::RelayAccess) -> core::result::Result<Self, radroots_transport_nostr::Error> 141 pub const fn radroots_transport_nostr::RelayEndpoint::policy(&self) -> radroots_transport_nostr::RelayUrlPolicy 142 pub const fn radroots_transport_nostr::RelayEndpoint::url(&self) -> &radroots_transport_nostr::RelayUrl 143 pub struct radroots_transport_nostr::RelayProfile 144 impl radroots_transport_nostr::RelayProfile 145 pub fn radroots_transport_nostr::RelayProfile::endpoints(&self) -> &[radroots_transport_nostr::RelayEndpoint] 146 pub fn radroots_transport_nostr::RelayProfile::explicit<I>(radroots_transport_nostr::RelayProfileKind, I) -> core::result::Result<Self, radroots_transport_nostr::Error> where I: core::iter::traits::collect::IntoIterator<Item = radroots_transport_nostr::RelayEndpoint> 147 pub const fn radroots_transport_nostr::RelayProfile::kind(&self) -> radroots_transport_nostr::RelayProfileKind 148 pub struct radroots_transport_nostr::RelayStatus 149 impl radroots_transport_nostr::RelayStatus 150 pub const fn radroots_transport_nostr::RelayStatus::endpoint(&self) -> &radroots_transport_nostr::RelayEndpoint 151 pub const fn radroots_transport_nostr::RelayStatus::read(&self) -> &radroots_transport_nostr::RelayCapabilityEvidence 152 pub const fn radroots_transport_nostr::RelayStatus::write(&self) -> &radroots_transport_nostr::RelayCapabilityEvidence 153 pub struct radroots_transport_nostr::RelayStatusReport 154 impl radroots_transport_nostr::RelayStatusReport 155 pub const fn radroots_transport_nostr::RelayStatusReport::profile_kind(&self) -> radroots_transport_nostr::RelayProfileKind 156 pub const fn radroots_transport_nostr::RelayStatusReport::read_availability(&self) -> radroots_transport::capability::Availability 157 pub fn radroots_transport_nostr::RelayStatusReport::relays(&self) -> &[radroots_transport_nostr::RelayStatus] 158 pub const fn radroots_transport_nostr::RelayStatusReport::state(&self) -> radroots_transport_nostr::RelayAggregateState 159 pub const fn radroots_transport_nostr::RelayStatusReport::write_availability(&self) -> radroots_transport::capability::Availability 160 pub struct radroots_transport_nostr::RelayUrl(_) 161 impl radroots_transport_nostr::RelayUrl 162 pub fn radroots_transport_nostr::RelayUrl::as_str(&self) -> &str 163 pub fn radroots_transport_nostr::RelayUrl::from_target(&radroots_transport::target::Target, radroots_transport_nostr::RelayUrlPolicy) -> core::result::Result<Self, radroots_transport_nostr::Error> 164 pub fn radroots_transport_nostr::RelayUrl::parse(impl core::convert::AsRef<str>, radroots_transport_nostr::RelayUrlPolicy) -> core::result::Result<Self, radroots_transport_nostr::Error> 165 pub fn radroots_transport_nostr::RelayUrl::to_target(&self) -> core::result::Result<radroots_transport::target::Target, radroots_transport_nostr::Error> 166 pub fn radroots_transport_nostr::RelayUrl::validate_resolved_addresses(&self, radroots_transport_nostr::RelayUrlPolicy, impl core::iter::traits::collect::IntoIterator<Item = core::net::ip_addr::IpAddr>) -> core::result::Result<(), radroots_transport_nostr::Error> 167 impl core::fmt::Display for radroots_transport_nostr::RelayUrl 168 pub fn radroots_transport_nostr::RelayUrl::fmt(&self, &mut core::fmt::Formatter<'_>) -> core::fmt::Result