pub struct SecurityChecker { /* private fields */ }Expand description
Security advisory checker
Implementations§
Source§impl SecurityChecker
impl SecurityChecker
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Create a new security checker
§Errors
Returns an error if the version manager or cache cannot be initialized.
Sourcepub async fn check_current_version(&self) -> Result<SecurityCheckResult>
pub async fn check_current_version(&self) -> Result<SecurityCheckResult>
Check current Rust version for security issues
§Errors
Returns an error if the current version cannot be detected or if the security check fails.
Sourcepub fn display_results(result: &SecurityCheckResult)
pub fn display_results(result: &SecurityCheckResult)
Display security check results
Auto Trait Implementations§
impl Freeze for SecurityChecker
impl !RefUnwindSafe for SecurityChecker
impl Send for SecurityChecker
impl Sync for SecurityChecker
impl Unpin for SecurityChecker
impl UnsafeUnpin for SecurityChecker
impl !UnwindSafe for SecurityChecker
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> 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