pub struct RuntimeGuard { /* private fields */ }Expand description
Keeps the Pylon runtime alive for explicit lifecycle management.
Most callers do not need this type. The runtime is initialized
automatically on the first call to crate::enumerate_devices,
crate::create_first_device, or crate::create_device, and is
kept alive as long as any crate::InstantCamera or
crate::DeviceInfo remains in scope.
Obtain one via init.
Keeps the Pylon runtime alive for explicit lifecycle management.
Obtained via crate::runtime::init; see that function’s documentation
for when this type is needed.
Implementations§
Source§impl RuntimeGuard
impl RuntimeGuard
pub fn new() -> PylonResult<Self>
Auto Trait Implementations§
impl Freeze for RuntimeGuard
impl RefUnwindSafe for RuntimeGuard
impl Send for RuntimeGuard
impl Sync for RuntimeGuard
impl Unpin for RuntimeGuard
impl UnsafeUnpin for RuntimeGuard
impl UnwindSafe for RuntimeGuard
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