pub struct ErlBargeGate { /* private fields */ }Expand description
Stateful ERL barge gate with hysteresis (WEFT-615).
Feed successive ERL samples during provisional Overlap / continuous
barge monitoring. Once admitted, stays admitted until ERL falls below
the release floor — so boundary flutter does not thrash Mute/Resume.
Implementations§
Source§impl ErlBargeGate
impl ErlBargeGate
Sourcepub const fn new(config: ErlBargeConfig) -> Self
pub const fn new(config: ErlBargeConfig) -> Self
A gate with the given knobs, starting denied (safe self-cancel default).
Sourcepub const fn with_defaults() -> Self
pub const fn with_defaults() -> Self
Default floor + hysteresis, starting denied.
Sourcepub fn config(&self) -> ErlBargeConfig
pub fn config(&self) -> ErlBargeConfig
Current knobs.
Sourcepub fn is_admitted(&self) -> bool
pub fn is_admitted(&self) -> bool
Whether the gate currently admits a barge.
Trait Implementations§
Source§impl Clone for ErlBargeGate
impl Clone for ErlBargeGate
Source§impl Debug for ErlBargeGate
impl Debug for ErlBargeGate
Auto Trait Implementations§
impl Freeze for ErlBargeGate
impl RefUnwindSafe for ErlBargeGate
impl Send for ErlBargeGate
impl Sync for ErlBargeGate
impl Unpin for ErlBargeGate
impl UnsafeUnpin for ErlBargeGate
impl UnwindSafe for ErlBargeGate
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