pub struct Info<'a> { /* private fields */ }Expand description
Information about a hardware device.
Provides device name and human-readable description for enumerated devices.
Implementations§
Source§impl<'a> Info<'a>
impl<'a> Info<'a>
Sourcepub unsafe fn wrap(ptr: *mut AVDeviceInfo) -> Self
pub unsafe fn wrap(ptr: *mut AVDeviceInfo) -> Self
Wraps a raw FFmpeg device info pointer.
Sourcepub unsafe fn as_ptr(&self) -> *const AVDeviceInfo
pub unsafe fn as_ptr(&self) -> *const AVDeviceInfo
Returns the raw pointer.
Sourcepub unsafe fn as_mut_ptr(&mut self) -> *mut AVDeviceInfo
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVDeviceInfo
Returns the mutable raw pointer.
Source§impl<'a> Info<'a>
impl<'a> Info<'a>
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Returns the device name.
This is typically the system identifier for the device (e.g., “/dev/video0”, “video=0”).
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns a human-readable device description.
This is a user-friendly name (e.g., “HD Webcam”, “Built-in Microphone”).
Auto Trait Implementations§
impl<'a> Freeze for Info<'a>
impl<'a> RefUnwindSafe for Info<'a>
impl<'a> !Send for Info<'a>
impl<'a> !Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> UnwindSafe for Info<'a>
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