pub struct Silencer<T: SilencerConfig> { /* private fields */ }Implementations§
source§impl<T: SilencerConfig> Silencer<T>
impl<T: SilencerConfig> Silencer<T>
pub const fn config(&self) -> T
pub const fn target(&self) -> SilencerTarget
source§impl<T: SilencerConfig> Silencer<T>
impl<T: SilencerConfig> Silencer<T>
pub const fn with_target(self, target: SilencerTarget) -> Self
source§impl Silencer<()>
impl Silencer<()>
pub const DEFAULT_COMPLETION_TIME_INTENSITY: Duration = _
pub const DEFAULT_COMPLETION_TIME_PHASE: Duration = _
pub const fn new<T: SilencerConfig>(config: T) -> Silencer<T>
pub const fn disable() -> Silencer<FixedCompletionTime>
source§impl Silencer<FixedUpdateRate>
impl Silencer<FixedUpdateRate>
pub const fn strict_mode(&self) -> bool
pub const fn is_valid<T: WithSampling>(&self, _target: &T) -> bool
source§impl Silencer<FixedCompletionTime>
impl Silencer<FixedCompletionTime>
pub const fn strict_mode(&self) -> bool
pub const fn with_strict_mode(self, strict_mode: bool) -> Self
pub fn is_valid<T: WithSampling>(&self, target: &T) -> bool
Trait Implementations§
source§impl<T: SilencerConfig> Datagram for Silencer<T>where
SilencerOpGenerator<T>: OperationGenerator,
impl<T: SilencerConfig> Datagram for Silencer<T>where
SilencerOpGenerator<T>: OperationGenerator,
source§impl Default for Silencer<FixedCompletionTime>
impl Default for Silencer<FixedCompletionTime>
impl<T: Copy + SilencerConfig> Copy for Silencer<T>
Auto Trait Implementations§
impl<T> Freeze for Silencer<T>where
T: Freeze,
impl<T> RefUnwindSafe for Silencer<T>where
T: RefUnwindSafe,
impl<T> Send for Silencer<T>where
T: Send,
impl<T> Sync for Silencer<T>where
T: Sync,
impl<T> Unpin for Silencer<T>where
T: Unpin,
impl<T> UnwindSafe for Silencer<T>where
T: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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<D> IntoDatagramWithParallelThreshold<D> for Dwhere
D: Datagram,
impl<D> IntoDatagramWithParallelThreshold<D> for Dwhere
D: Datagram,
fn with_parallel_threshold( self, threshold: Option<usize>, ) -> DatagramWithParallelThreshold<D>
source§impl<D> IntoDatagramWithTimeout<D> for Dwhere
D: Datagram,
impl<D> IntoDatagramWithTimeout<D> for Dwhere
D: Datagram,
fn with_timeout(self, timeout: Option<Duration>) -> DatagramWithTimeout<D>
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> 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.