Struct vidi::actors::camera_list::Handle
source · pub struct Handle {
sender: SyncSender<Message>,
thread: Option<JoinHandle<Result<(), RecvError>>>,
cam_receiver: Receiver<Cameras>,
}
Expand description
Stores camera present on the system
Fields§
§sender: SyncSender<Message>
§thread: Option<JoinHandle<Result<(), RecvError>>>
§cam_receiver: Receiver<Cameras>
Implementations§
source§impl Handle
impl Handle
sourcepub fn stop(self) -> Result<Result<(), RecvError>, (Self, &'static str)>
pub fn stop(self) -> Result<Result<(), RecvError>, (Self, &'static str)>
Requests the handler thread to stop and waits. Call this to ensure that the thread is stopped. Dropping Handle requests the stopping asynchronously and doesn’t ensure success.
fn sender(&self) -> &SyncSender<Message>
pub fn cameras(&self) -> Cameras
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Handle
impl !RefUnwindSafe for Handle
impl Send for Handle
impl !Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
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