pub struct ThinEdge { /* private fields */ }Expand description
Edge half of the localhost duplex session (WEFT-628).
Holds only reflex state + the last ERL; no forest, no STT, no floor
decisions. Daemon commands arrive as EdgeCommand; ERL is observed and
reported, never judged.
Implementations§
Source§impl ThinEdge
impl ThinEdge
Sourcepub fn reflex(&self) -> EdgeReflexShadow
pub fn reflex(&self) -> EdgeReflexShadow
Current reflex shadow.
Sourcepub fn edge_state(&self) -> EdgeState
pub fn edge_state(&self) -> EdgeState
Latest control-lane snapshot (clone of the live state).
Sourcepub fn is_transmitting(&self) -> bool
pub fn is_transmitting(&self) -> bool
Whether the edge is transmitting mic frames up.
Sourcepub fn observe_erl(&mut self, erl: f32)
pub fn observe_erl(&mut self, erl: f32)
Relay AEC ERL confidence (ADR-068 D5 #1 is the AEC itself; this is the control-lane relay only).
Sourcepub fn on_command(&mut self, cmd: &EdgeCommand)
pub fn on_command(&mut self, cmd: &EdgeCommand)
Execute a daemon command (instant mute/silence/resume/cancel).
Sourcepub fn on_link_loss(&mut self)
pub fn on_link_loss(&mut self)
Link-loss safety (the one self-firing rule).
Sourcepub fn on_link_restored(&mut self)
pub fn on_link_restored(&mut self)
Re-handshake after link restore: TX resumes, speaker stays silent until the daemon plays (never speak unprompted).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThinEdge
impl RefUnwindSafe for ThinEdge
impl Send for ThinEdge
impl Sync for ThinEdge
impl Unpin for ThinEdge
impl UnsafeUnpin for ThinEdge
impl UnwindSafe for ThinEdge
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