Struct scayl::context::ContextRunner
source · [−]pub struct ContextRunner<'a> { /* private fields */ }
Expand description
The staging area for analyzing a piece of software
Implementations
sourceimpl<'a> ContextRunner<'a>
impl<'a> ContextRunner<'a>
sourcepub fn grype(&mut self, grype: &'a Grype) -> &mut Self
pub fn grype(&mut self, grype: &'a Grype) -> &mut Self
Appends a grype file to the context runner
sourcepub fn trivy(&mut self, trivy: &'a Trivy) -> &mut Self
pub fn trivy(&mut self, trivy: &'a Trivy) -> &mut Self
Appends a trivy file to the context runner
sourcepub fn cyclone_dx(&mut self, cyclonedx: &'a CycloneDx) -> &mut Self
pub fn cyclone_dx(&mut self, cyclonedx: &'a CycloneDx) -> &mut Self
Appends a cyclonedx file to the context runner
sourcepub fn calculate(
&self,
context: &DeploymentContext
) -> Result<DeploymentScore, LinkedList<Error>>
pub fn calculate(
&self,
context: &DeploymentContext
) -> Result<DeploymentScore, LinkedList<Error>>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContextRunner<'a>
impl<'a> Send for ContextRunner<'a>
impl<'a> Sync for ContextRunner<'a>
impl<'a> Unpin for ContextRunner<'a>
impl<'a> UnwindSafe for ContextRunner<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more