pub struct TelemetryClient { /* private fields */ }Implementations§
Source§impl TelemetryClient
impl TelemetryClient
pub async fn new(_config: &Config) -> Result<Self, Box<dyn Error>>
pub fn track_event(&self, name: &str, properties: HashMap<String, Value>)
pub fn track_analyze(&self, properties: HashMap<String, Value>)
pub fn track_generate(&self, properties: HashMap<String, Value>)
pub fn track_validate(&self, properties: HashMap<String, Value>)
pub fn track_support(&self, properties: HashMap<String, Value>)
pub fn track_dependencies(&self, properties: HashMap<String, Value>)
pub fn track_vulnerabilities(&self, properties: HashMap<String, Value>)
pub fn track_security(&self, properties: HashMap<String, Value>)
pub fn track_tools(&self, properties: HashMap<String, Value>)
pub fn track_security_scan(&self)
pub fn track_analyze_folder(&self, properties: HashMap<String, Value>)
pub fn track_vulnerability_scan(&self)
pub async fn flush(&self)
Auto Trait Implementations§
impl Freeze for TelemetryClient
impl !RefUnwindSafe for TelemetryClient
impl Send for TelemetryClient
impl Sync for TelemetryClient
impl Unpin for TelemetryClient
impl UnsafeUnpin for TelemetryClient
impl !UnwindSafe for TelemetryClient
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> 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 moreCreates a shared type from an unshared type.