pub struct Silencer<T> { /* private fields */ }
Implementations§
source§impl Silencer<FixedCompletionTime>
impl Silencer<FixedCompletionTime>
pub const fn with_strict_mode( self, strict_mode: bool, ) -> Silencer<FixedCompletionTime>
pub const fn with_target( self, target: SilencerTarget, ) -> Silencer<FixedCompletionTime>
source§impl Silencer<FixedCompletionTime>
impl Silencer<FixedCompletionTime>
pub fn is_valid<T>(&self, target: &T) -> boolwhere
T: WithSampling,
source§impl Silencer<FixedUpdateRate>
impl Silencer<FixedUpdateRate>
pub const fn with_target( self, target: SilencerTarget, ) -> Silencer<FixedUpdateRate>
source§impl Silencer<FixedUpdateRate>
impl Silencer<FixedUpdateRate>
pub fn is_valid<T>(&self, _target: &T) -> boolwhere
T: WithSampling,
source§impl Silencer<()>
impl Silencer<()>
pub const DEFAULT_COMPLETION_TIME_INTENSITY: Duration = _
pub const DEFAULT_COMPLETION_TIME_PHASE: Duration = _
pub const fn from_update_rate( update_rate_intensity: NonZero<u8>, update_rate_phase: NonZero<u8>, ) -> Silencer<FixedUpdateRate>
pub const fn from_completion_time( time_intensity: Duration, time_phase: Duration, ) -> Silencer<FixedCompletionTime>
pub const fn disable() -> Silencer<FixedCompletionTime>
Trait Implementations§
source§impl Datagram for Silencer<FixedCompletionTime>
impl Datagram for Silencer<FixedCompletionTime>
type G = SilencerFixedCompletionTimeOpGenerator
fn timeout(&self) -> Option<Duration>
fn operation_generator( self, _: &Geometry, ) -> Result<<Silencer<FixedCompletionTime> as Datagram>::G, AUTDInternalError>
fn parallel_threshold(&self) -> Option<usize>
fn trace(&self, _geometry: &Geometry)
source§impl Datagram for Silencer<FixedUpdateRate>
impl Datagram for Silencer<FixedUpdateRate>
type G = SilencerFixedUpdateRateOpGenerator
fn timeout(&self) -> Option<Duration>
fn operation_generator( self, _: &Geometry, ) -> Result<<Silencer<FixedUpdateRate> as Datagram>::G, AUTDInternalError>
fn parallel_threshold(&self) -> Option<usize>
fn trace(&self, _geometry: &Geometry)
impl<T> Copy for Silencer<T>where
T: Copy,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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: 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: 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.