pub struct EmbeddedMediaDriver { /* private fields */ }Expand description
RAII guard for an embedded media driver launched via
AeronDriver::launch_embedded_guard. Signals stop on drop so the driver
thread always joins even on panic / early return.
Implementations§
Source§impl EmbeddedMediaDriver
impl EmbeddedMediaDriver
Sourcepub fn stop(&self)
pub fn stop(&self)
Signal the driver thread to stop (idempotent; the thread exits on its next
idle cycle). Blocks until it joins when consumed by Self::join.
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Whether the driver thread has finished.
Sourcepub fn join(self) -> Result<(), AeronCError>
pub fn join(self) -> Result<(), AeronCError>
Signal stop and block until the driver thread joins, returning its result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedMediaDriver
impl !RefUnwindSafe for EmbeddedMediaDriver
impl Send for EmbeddedMediaDriver
impl Sync for EmbeddedMediaDriver
impl Unpin for EmbeddedMediaDriver
impl UnsafeUnpin for EmbeddedMediaDriver
impl !UnwindSafe for EmbeddedMediaDriver
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