pub struct Silencer<T: SilencerConfig> { /* private fields */ }Expand description
Datagram to configure the silencer.
Implementations§
Source§impl<T: SilencerConfig> Silencer<T>
impl<T: SilencerConfig> Silencer<T>
Sourcepub const fn target(&self) -> SilencerTarget
pub const fn target(&self) -> SilencerTarget
The target of the silencer.
Source§impl<T: SilencerConfig> Silencer<T>
impl<T: SilencerConfig> Silencer<T>
Sourcepub const fn with_target(self, target: SilencerTarget) -> Self
pub const fn with_target(self, target: SilencerTarget) -> Self
Set the target field.
Source§impl Silencer<()>
impl Silencer<()>
Sourcepub const DEFAULT_COMPLETION_TIME_INTENSITY: Duration
pub const DEFAULT_COMPLETION_TIME_INTENSITY: Duration
The default completion time of the intensity change.
Sourcepub const DEFAULT_COMPLETION_TIME_PHASE: Duration
pub const DEFAULT_COMPLETION_TIME_PHASE: Duration
The default completion time of the phase change.
Sourcepub const fn disable() -> Silencer<FixedCompletionTime>
pub const fn disable() -> Silencer<FixedCompletionTime>
Creates a Silencer to disable the silencer.
Source§impl Silencer<FixedCompletionTime>
impl Silencer<FixedCompletionTime>
Sourcepub const fn strict_mode(&self) -> bool
pub const fn strict_mode(&self) -> bool
Whether the strict mode is enabled. The default is true.
If the strict mode is enabled, an error is returned if the phase/intensity change of Modulation, FociSTM or GainSTM cannot be completed within the time specified by the silencer.
Sourcepub const fn with_strict_mode(self, strict_mode: bool) -> Self
pub const fn with_strict_mode(self, strict_mode: bool) -> Self
Sets the strict_mode.
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§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,
Source§fn with_parallel_threshold(
self,
threshold: Option<usize>,
) -> DatagramWithParallelThreshold<D>
fn with_parallel_threshold( self, threshold: Option<usize>, ) -> DatagramWithParallelThreshold<D>
Convert
Datagram to DatagramWithParallelThreshold.Source§impl<D> IntoDatagramWithTimeout<D> for Dwhere
D: Datagram,
impl<D> IntoDatagramWithTimeout<D> for Dwhere
D: Datagram,
Source§fn with_timeout(self, timeout: Option<Duration>) -> DatagramWithTimeout<D>
fn with_timeout(self, timeout: Option<Duration>) -> DatagramWithTimeout<D>
Convert
Datagram to DatagramWithTimeout.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.