Struct krill::commons::bgp::Announcement
source · pub struct Announcement { /* private fields */ }
Implementations§
source§impl Announcement
impl Announcement
pub fn new(asn: AsNumber, prefix: TypedPrefix) -> Self
pub fn asn(&self) -> &AsNumber
pub fn prefix(&self) -> &TypedPrefix
pub fn validate(&self, roas: &RoaTree) -> ValidatedAnnouncement
Trait Implementations§
source§impl AsRef<TypedPrefix> for Announcement
impl AsRef<TypedPrefix> for Announcement
source§fn as_ref(&self) -> &TypedPrefix
fn as_ref(&self) -> &TypedPrefix
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for Announcement
impl Clone for Announcement
source§fn clone(&self) -> Announcement
fn clone(&self) -> Announcement
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Announcement
impl Debug for Announcement
source§impl<'de> Deserialize<'de> for Announcement
impl<'de> Deserialize<'de> for Announcement
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for Announcement
impl Display for Announcement
source§impl From<Announcement> for RoaPayload
impl From<Announcement> for RoaPayload
source§fn from(a: Announcement) -> Self
fn from(a: Announcement) -> Self
Converts to this type from the input type.
source§impl From<RoaPayload> for Announcement
impl From<RoaPayload> for Announcement
source§fn from(d: RoaPayload) -> Self
fn from(d: RoaPayload) -> Self
Converts to this type from the input type.
source§impl FromStr for Announcement
impl FromStr for Announcement
source§impl Hash for Announcement
impl Hash for Announcement
source§impl Ord for Announcement
impl Ord for Announcement
source§impl PartialEq for Announcement
impl PartialEq for Announcement
source§fn eq(&self, other: &Announcement) -> bool
fn eq(&self, other: &Announcement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Announcement
impl PartialOrd for Announcement
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Announcement
impl Serialize for Announcement
impl Copy for Announcement
impl Eq for Announcement
impl StructuralEq for Announcement
impl StructuralPartialEq for Announcement
Auto Trait Implementations§
impl RefUnwindSafe for Announcement
impl Send for Announcement
impl Sync for Announcement
impl Unpin for Announcement
impl UnwindSafe for Announcement
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Text for Twhere
T: Display,
impl<T> Text for Twhere
T: Display,
source§fn write_escaped(
&self,
mode: TextEscape,
target: &mut impl Write
) -> Result<(), Error>
fn write_escaped( &self, mode: TextEscape, target: &mut impl Write ) -> Result<(), Error>
Write text escaped for the given mode to
target
.