[−][src]Struct routinator::origins::AddressOrigins
A set of address origin statements.
This type contains a list of AddressOrigin
statements. While it is
indeed a set, that is, it doesn’t contain duplicates, it is accessible
like a slice of address origins, to which it even derefs. This is so that
we can iterate over the set using indexes instead of references, avoiding
self-referential types in futures.
Methods
impl AddressOrigins
[src]
pub fn new() -> Self
[src]
Creates a new, empty set of address origins.
pub fn from_report(
report: OriginsReport,
exceptions: &LocalExceptions,
extra_info: bool,
metrics: &mut Metrics
) -> Self
[src]
report: OriginsReport,
exceptions: &LocalExceptions,
extra_info: bool,
metrics: &mut Metrics
) -> Self
Creates a set from the raw route origins and exceptions.
The function will take all the address origins in origins
, drop
duplicates, drop the origins filtered in execptions
and add the
assertions from exceptions
.
pub fn iter(&self) -> Iter<AddressOrigin>
[src]
Returns an iterator over the address orgins.
Trait Implementations
impl AsRef<AddressOrigins> for AddressOrigins
[src]
impl AsRef<[AddressOrigin]> for AddressOrigins
[src]
fn as_ref(&self) -> &[AddressOrigin]
[src]
impl From<HashSet<AddressOrigin, RandomState>> for AddressOrigins
[src]
fn from(set: HashSet<AddressOrigin>) -> Self
[src]
impl Clone for AddressOrigins
[src]
fn clone(&self) -> AddressOrigins
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for AddressOrigins
[src]
fn default() -> AddressOrigins
[src]
impl Deref for AddressOrigins
[src]
type Target = [AddressOrigin]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl Debug for AddressOrigins
[src]
Auto Trait Implementations
impl Send for AddressOrigins
impl Sync for AddressOrigins
impl Unpin for AddressOrigins
impl UnwindSafe for AddressOrigins
impl RefUnwindSafe for AddressOrigins
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,