pub struct CameraManager<T: DeviceManager> { /* private fields */ }Implementations§
Source§impl<T: DeviceManager> CameraManager<T>
impl<T: DeviceManager> CameraManager<T>
pub fn new() -> Result<Self>
pub fn index(&self, index: usize) -> Option<&T::DeviceType>
pub fn index_mut(&mut self, index: usize) -> Option<&mut T::DeviceType>
pub fn lookup(&self, id: &str) -> Option<&T::DeviceType>
pub fn lookup_mut(&mut self, id: &str) -> Option<&mut T::DeviceType>
pub fn iter(&self) -> T::Iter<'_>
pub fn iter_mut(&mut self) -> T::IterMut<'_>
pub fn refresh(&mut self) -> Result<()>
pub fn set_change_handler<F>(&mut self, handler: F) -> Result<()>
Source§impl CameraManager<DefaultCameraManager>
impl CameraManager<DefaultCameraManager>
pub fn new_default() -> Result<Self>
Trait Implementations§
Source§impl<T: DeviceManager> Drop for CameraManager<T>
impl<T: DeviceManager> Drop for CameraManager<T>
Auto Trait Implementations§
impl<T> Freeze for CameraManager<T>where
T: Freeze,
impl<T> RefUnwindSafe for CameraManager<T>where
T: RefUnwindSafe,
impl<T> Send for CameraManager<T>where
T: Send,
impl<T> Sync for CameraManager<T>where
T: Sync,
impl<T> Unpin for CameraManager<T>where
T: Unpin,
impl<T> UnwindSafe for CameraManager<T>where
T: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more