pub struct TrackStatusStateMachine {
state: TrackStatusState,
}Expand description
Pure state machine for a MoQT track status request (draft-10). Transitions: Idle → Pending → Done.
Fields§
§state: TrackStatusStateImplementations§
Source§impl TrackStatusStateMachine
impl TrackStatusStateMachine
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new state machine in the TrackStatusState::Idle state.
Sourcepub fn state(&self) -> TrackStatusState
pub fn state(&self) -> TrackStatusState
Returns the current state of the track status request.
Sourcepub fn on_track_status_request_sent(&mut self) -> Result<(), TrackStatusError>
pub fn on_track_status_request_sent(&mut self) -> Result<(), TrackStatusError>
Idle → Pending (TRACK_STATUS_REQUEST sent).
Sourcepub fn on_track_status(&mut self) -> Result<(), TrackStatusError>
pub fn on_track_status(&mut self) -> Result<(), TrackStatusError>
Pending → Done (TRACK_STATUS received).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackStatusStateMachine
impl RefUnwindSafe for TrackStatusStateMachine
impl Send for TrackStatusStateMachine
impl Sync for TrackStatusStateMachine
impl Unpin for TrackStatusStateMachine
impl UnsafeUnpin for TrackStatusStateMachine
impl UnwindSafe for TrackStatusStateMachine
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