pub struct Scanner<S: ScannerImpl> { /* private fields */ }Expand description
The scanner holds the state that is necessary to perform audits as well as the auditing logic
It is generic over ScannerImpl, which is a bundle trait containing implementations of Stores
and Clients.
Implementations§
Source§impl<S: ScannerImpl> Scanner<S>
impl<S: ScannerImpl> Scanner<S>
pub async fn collect_report_pem( &self, data: &str, ) -> Result<Report, ScannerError>
pub async fn collect_report( &self, chain: Arc<CertificateChain>, ) -> Result<Report, ScannerError>
Source§impl<S: ScannerImpl> Scanner<S>
impl<S: ScannerImpl> Scanner<S>
pub async fn basic_statistics(&self) -> BasicStatistics
Source§impl<S: ScannerImpl> Scanner<S>
impl<S: ScannerImpl> Scanner<S>
pub fn logs<'a>(&'a self) -> Box<dyn Iterator<Item = &'a CtLog> + 'a>
pub fn new<F: Fn() -> DateTime<Utc> + 'static>( config: ScannerConfig, report_store: S::ReportStore, client: S::Client, time_source: F, ) -> Self
pub fn add_log(&mut self, log: &CtLog, sth_store: S::SthStore) -> &mut Self
Sourcepub async fn refresh_all_logs(&self) -> Result<(), ScannerError>
pub async fn refresh_all_logs(&self) -> Result<(), ScannerError>
Updates all log’s STHs
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Scanner<S>
impl<S> !Send for Scanner<S>
impl<S> !Sync for Scanner<S>
impl<S> !UnwindSafe for Scanner<S>
impl<S> Freeze for Scanner<S>
impl<S> Unpin for Scanner<S>
impl<S> UnsafeUnpin for Scanner<S>
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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