pub struct EmbeddedDriver { /* private fields */ }Expand description
An embedded media driver running on a background thread, with a unique directory,
stopped and joined automatically on Drop.
let driver = EmbeddedDriver::launch().unwrap();
// connect clients against driver.dir() ...
// driver stops + joins when it goes out of scopeImplementations§
Source§impl EmbeddedDriver
impl EmbeddedDriver
Sourcepub fn launch() -> Result<Self, AeronCError>
pub fn launch() -> Result<Self, AeronCError>
Launch an embedded driver in a unique directory (deleted on start and shutdown).
Sourcepub fn launch_with(
configure: impl FnOnce(&AeronDriverContext) -> Result<(), AeronCError>,
) -> Result<Self, AeronCError>
pub fn launch_with( configure: impl FnOnce(&AeronDriverContext) -> Result<(), AeronCError>, ) -> Result<Self, AeronCError>
Launch with extra AeronDriverContext configuration (timeouts, idle strategies…)
applied before the driver starts.
Sourcepub fn context(&self) -> &AeronDriverContext
pub fn context(&self) -> &AeronDriverContext
The driver’s context, e.g. for reading configured values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EmbeddedDriver
impl !RefUnwindSafe for EmbeddedDriver
impl Send for EmbeddedDriver
impl Sync for EmbeddedDriver
impl Unpin for EmbeddedDriver
impl UnsafeUnpin for EmbeddedDriver
impl !UnwindSafe for EmbeddedDriver
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