pub enum ControlEvent {
Stop,
Isolate(bool),
Seek(Arc<dyn SeekPosition>),
}Expand description
Control events for managing data source lifecycle.
These events are sent through CtrlRx to control source behavior
at runtime. Sources should handle these events in their start() method.
Variants§
Stop
Request immediate stop. Source should exit its receive loop promptly.
Isolate(bool)
Toggle isolation mode. true = pause output, false = resume.
Seek(Arc<dyn SeekPosition>)
Request to seek to a specific position.
Trait Implementations§
Source§impl Clone for ControlEvent
impl Clone for ControlEvent
Source§fn clone(&self) -> ControlEvent
fn clone(&self) -> ControlEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControlEvent
impl !RefUnwindSafe for ControlEvent
impl Send for ControlEvent
impl Sync for ControlEvent
impl Unpin for ControlEvent
impl !UnwindSafe for ControlEvent
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