Skip to main content

MemoryBootstrapStore

Struct MemoryBootstrapStore 

Source
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

Source§

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>

Puts a registry into the bootstrap registry store.
Source§

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>

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>

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>

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>

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>

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>

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>

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>

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>

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>

Get the urls for an object tag query type. Read more
Source§

impl Default for MemoryBootstrapStore

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Send for MemoryBootstrapStore

Source§

impl Sync for MemoryBootstrapStore

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more