pub struct CheckPeering<'a> {
pub c: &'a Compliance<'a>,
pub accept_num: u32,
}Fields§
§c: &'a Compliance<'a>§accept_num: u32Implementations§
Source§impl<'a> CheckPeering<'a>
impl<'a> CheckPeering<'a>
pub fn check_peering_actions<'b, I>(&self, peerings: I) -> AnyReportwhere
I: IntoIterator<Item = &'b PeeringAction>,
pub fn check_peering_action(&self, peering_actions: &PeeringAction) -> AllReport
Sourcepub fn check_actions(&self, _actions: &Actions) -> AllReport
pub fn check_actions(&self, _actions: &Actions) -> AllReport
We skip community checks, but this could be an enhancement. https://github.com/SichangHe/parse_rpsl_policy/issues/16.
Trait Implementations§
Source§impl<'a> VerbosityReport for CheckPeering<'a>
impl<'a> VerbosityReport for CheckPeering<'a>
fn get_verbosity(&self) -> Verbosity
fn meh_import( &self, from: u32, to: u32, items: ReportItems, reason: ReportItem, ) -> Report
fn meh_export( &self, from: u32, to: u32, items: ReportItems, reason: ReportItem, ) -> Report
fn skip_any_report<F>(&self, reason: F) -> AnyReportwhere
F: Fn() -> ReportItem,
fn skip_any_reports<F>(&self, reasons: F) -> AnyReportwhere
F: Fn() -> ReportItems,
fn unrec_any_report<F>(&self, reason: F) -> AnyReportwhere
F: Fn() -> ReportItem,
fn special_any_report<F>(&self, reason: F) -> AnyReportwhere
F: Fn() -> ReportItem,
fn bad_any_report<F>(&self, reason: F) -> AnyReportwhere
F: Fn() -> ReportItem,
fn skip_all_report<F>(&self, reason: F) -> AllReportwhere
F: Fn() -> ReportItem,
fn bad_all_report<F>(&self, reason: F) -> AllReportwhere
F: Fn() -> ReportItem,
Auto Trait Implementations§
impl<'a> Freeze for CheckPeering<'a>
impl<'a> RefUnwindSafe for CheckPeering<'a>
impl<'a> Send for CheckPeering<'a>
impl<'a> Sync for CheckPeering<'a>
impl<'a> Unpin for CheckPeering<'a>
impl<'a> UnwindSafe for CheckPeering<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more