pub struct MemoryBootstrapStore { /* private fields */ }Expand description
A bootstrap registry store backed by memory.
This implementation of BootstrapStore keeps registries in memory. Every new instance starts with no registries in memory. They are added and maintained over time by calls to MemoryBootstrapStore::put_bootstrap_registry() by the machinery of crate::rdap::request::rdap_bootstrapped_request() and crate::iana::bootstrap::qtype_to_bootstrap_url().
Ideally, this should be kept in the same scope as reqwest::Client.
Implementations§
Trait Implementations§
Source§impl BootstrapStore for MemoryBootstrapStore
impl BootstrapStore for MemoryBootstrapStore
Source§fn has_bootstrap_registry(
&self,
reg_type: &IanaRegistryType,
) -> Result<bool, RdapClientError>
fn has_bootstrap_registry( &self, reg_type: &IanaRegistryType, ) -> Result<bool, RdapClientError>
Called when store is checked to see if it has a valid bootstrap registry. Read more
Source§fn put_bootstrap_registry(
&self,
reg_type: &IanaRegistryType,
registry: IanaRegistry,
http_data: HttpData,
) -> Result<(), RdapClientError>
fn put_bootstrap_registry( &self, reg_type: &IanaRegistryType, registry: IanaRegistry, http_data: HttpData, ) -> Result<(), RdapClientError>
Puts a registry into the bootstrap registry store.
Source§fn get_dns_urls(
&self,
ldh: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_dns_urls( &self, ldh: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the URLs associated with the IANA RDAP DNS bootstrap. Read more
Source§fn get_asn_urls(
&self,
asn: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_asn_urls( &self, asn: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the URLs associated with the IANA RDAP ASN bootstrap. Read more
Source§fn get_ipv4_urls(
&self,
ipv4: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_ipv4_urls( &self, ipv4: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the URLs associated with the IANA RDAP IPv4 bootstrap. Read more
Source§fn get_ipv6_urls(
&self,
ipv6: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_ipv6_urls( &self, ipv6: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the URLs associated with the IANA RDAP IPv6 bootstrap. Read more
Source§fn get_tag_urls(
&self,
tag: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_tag_urls( &self, tag: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the URLs associated with the IANA RDAP Object Tags bootstrap. Read more
Source§fn get_domain_query_urls(
&self,
query_type: &QueryType,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_domain_query_urls( &self, query_type: &QueryType, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for a domain or nameserver (which are domain names) query type. Read more
Source§fn get_autnum_query_urls(
&self,
query_type: &QueryType,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_autnum_query_urls( &self, query_type: &QueryType, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for an autnum query type. Read more
Source§fn get_ipv4_query_urls(
&self,
query_type: &QueryType,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_ipv4_query_urls( &self, query_type: &QueryType, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for an IPv4 query type. Read more
Source§fn get_ipv6_query_urls(
&self,
query_type: &QueryType,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_ipv6_query_urls( &self, query_type: &QueryType, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for an IPv6 query type. Read more
Source§fn get_entity_handle_query_urls(
&self,
query_type: &QueryType,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_entity_handle_query_urls( &self, query_type: &QueryType, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for an entity handle query type. Read more
Source§fn get_tag_query_urls(
&self,
tag: &str,
) -> Result<Option<Vec<String>>, RdapClientError>
fn get_tag_query_urls( &self, tag: &str, ) -> Result<Option<Vec<String>>, RdapClientError>
Get the urls for an object tag query type. Read more
Source§impl Default for MemoryBootstrapStore
impl Default for MemoryBootstrapStore
impl Send for MemoryBootstrapStore
impl Sync for MemoryBootstrapStore
Auto Trait Implementations§
impl Freeze for MemoryBootstrapStore
impl RefUnwindSafe for MemoryBootstrapStore
impl Unpin for MemoryBootstrapStore
impl UnsafeUnpin for MemoryBootstrapStore
impl UnwindSafe for MemoryBootstrapStore
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