pub struct CostAnalyzer { /* private fields */ }Expand description
Cost Analyzer implementation
Implementations§
Source§impl CostAnalyzer
impl CostAnalyzer
Sourcepub fn new(config: CostAnalyzerConfig) -> Self
pub fn new(config: CostAnalyzerConfig) -> Self
Create a new Cost Analyzer
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default configuration
Trait Implementations§
Source§impl Analyzer for CostAnalyzer
impl Analyzer for CostAnalyzer
Source§fn config(&self) -> &AnalyzerConfig
fn config(&self) -> &AnalyzerConfig
Get the analyzer’s configuration
Source§fn state(&self) -> AnalyzerState
fn state(&self) -> AnalyzerState
Get the current state of the analyzer
Source§fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start the analyzer Read more
Source§fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop the analyzer gracefully Read more
Source§fn process_event<'life0, 'async_trait>(
&'life0 mut self,
event: AnalyzerEvent,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_event<'life0, 'async_trait>(
&'life0 mut self,
event: AnalyzerEvent,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single event Read more
Source§fn generate_report<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<AnalysisReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn generate_report<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<AnalysisReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate a report of current analysis results Read more
Source§fn get_stats(&self) -> AnalyzerStats
fn get_stats(&self) -> AnalyzerStats
Get current statistics about the analyzer’s operation Read more
Source§fn reset<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reset<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Reset the analyzer’s state Read more
Source§fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn health_check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AnalyzerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Health check for the analyzer Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CostAnalyzer
impl !UnwindSafe for CostAnalyzer
impl Freeze for CostAnalyzer
impl Send for CostAnalyzer
impl Sync for CostAnalyzer
impl Unpin for CostAnalyzer
impl UnsafeUnpin for CostAnalyzer
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.