pub struct AnnotationOptions { /* private fields */ }Expand description
Options for applying annotations.
Implementations§
Source§impl AnnotationOptions
impl AnnotationOptions
Sourcepub fn with_product(self, product: Option<impl Into<String>>) -> Self
pub fn with_product(self, product: Option<impl Into<String>>) -> Self
Overrides the product string in the profile. None uses the default,
which is PID <pid>.
The Firefox Profiler prominently displays the product and OS-CPU string
together in the form <product> - <OS-CPU>.
Sourcepub fn with_os_cpu(self, os_cpu: Option<impl Into<String>>) -> Self
pub fn with_os_cpu(self, os_cpu: Option<impl Into<String>>) -> Self
Overrides the OS and CPU string in the profile. None uses the
default, which looks like Ubuntu 24.0.04.4 LTS.
The Firefox Profiler prominently displays the product and OS-CPU string
together in the form <product> - <OS-CPU>.
Trait Implementations§
Source§impl Clone for AnnotationOptions
impl Clone for AnnotationOptions
Source§fn clone(&self) -> AnnotationOptions
fn clone(&self) -> AnnotationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationOptions
impl Debug for AnnotationOptions
Source§impl Default for AnnotationOptions
impl Default for AnnotationOptions
Source§fn default() -> AnnotationOptions
fn default() -> AnnotationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnnotationOptions
impl RefUnwindSafe for AnnotationOptions
impl Send for AnnotationOptions
impl Sync for AnnotationOptions
impl Unpin for AnnotationOptions
impl UnsafeUnpin for AnnotationOptions
impl UnwindSafe for AnnotationOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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