pub struct RealtimeFrameScheduleState { /* private fields */ }Expand description
Portable delayed-frame schedule state with no token or backend payloads.
Implementations§
Source§impl RealtimeFrameScheduleState
impl RealtimeFrameScheduleState
Sourcepub fn new(schedule: RealtimeSpeechConfig) -> Self
pub fn new(schedule: RealtimeSpeechConfig) -> Self
Creates an empty state bound to one exact normalized schedule.
Sourcepub const fn schedule(&self) -> &RealtimeSpeechConfig
pub const fn schedule(&self) -> &RealtimeSpeechConfig
Exact normalized schedule identity carried by this state.
Sourcepub fn occupancy(
&self,
coordinate: RealtimeSlotCoordinate,
) -> Option<RealtimeSlotOccupancy>
pub fn occupancy( &self, coordinate: RealtimeSlotCoordinate, ) -> Option<RealtimeSlotOccupancy>
Returns scheduling provenance for one retained coordinate.
Sourcepub fn validate_schedule(
&self,
schedule: &RealtimeSpeechConfig,
) -> Result<(), RealtimeScheduleError>
pub fn validate_schedule( &self, schedule: &RealtimeSpeechConfig, ) -> Result<(), RealtimeScheduleError>
Rejects state handoff to any materially different normalized schedule.
Sourcepub fn advance(
&mut self,
schedule: &RealtimeSpeechConfig,
forcing: &RealtimeFrameForcing,
) -> Result<RealtimeFrameTransition, RealtimeScheduleError>
pub fn advance( &mut self, schedule: &RealtimeSpeechConfig, forcing: &RealtimeFrameForcing, ) -> Result<RealtimeFrameTransition, RealtimeScheduleError>
Accepts one input frame, resolves all portable coordinates, records target occupancy, and advances this transaction-local branch.
The update is atomic: malformed masks, missing history, and arithmetic
overflow leave self unchanged.
Trait Implementations§
Source§impl Clone for RealtimeFrameScheduleState
impl Clone for RealtimeFrameScheduleState
Source§fn clone(&self) -> RealtimeFrameScheduleState
fn clone(&self) -> RealtimeFrameScheduleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealtimeFrameScheduleState
impl Debug for RealtimeFrameScheduleState
impl Eq for RealtimeFrameScheduleState
Source§impl SemanticStateTransaction for RealtimeFrameScheduleState
impl SemanticStateTransaction for RealtimeFrameScheduleState
Source§type Branch = RealtimeFrameScheduleState
type Branch = RealtimeFrameScheduleState
Transition-local branch.
Source§type Error = RealtimeScheduleError
type Error = RealtimeScheduleError
State error.
Source§fn commit_branch(&mut self, branch: Self::Branch) -> Result<(), Self::Error>
fn commit_branch(&mut self, branch: Self::Branch) -> Result<(), Self::Error>
Publishes a completed branch.
Source§fn discard_branch(branch: Self::Branch) -> Result<(), Self::Error>
fn discard_branch(branch: Self::Branch) -> Result<(), Self::Error>
Discards an unpublished branch.
Source§fn permits_parallel_branches(&self) -> bool
fn permits_parallel_branches(&self) -> bool
Whether independent branches may share the current canonical base.
impl StructuralPartialEq for RealtimeFrameScheduleState
Auto Trait Implementations§
impl Freeze for RealtimeFrameScheduleState
impl RefUnwindSafe for RealtimeFrameScheduleState
impl Send for RealtimeFrameScheduleState
impl Sync for RealtimeFrameScheduleState
impl Unpin for RealtimeFrameScheduleState
impl UnsafeUnpin for RealtimeFrameScheduleState
impl UnwindSafe for RealtimeFrameScheduleState
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