Struct media_subsystem::MediaV2Entity
source · pub struct MediaV2Entity {
pub id: u32,
pub name: Result<String, [c_char; 64]>,
pub function: MediaEntF,
pub flags: MediaEntFl,
}
Fields§
§id: u32
Unique ID for the entity. Do not expect that the ID will always be the same for each instance of the device. In other words, do not hardcode entity IDs in an application.
name: Result<String, [c_char; 64]>
This name must be unique within the media topology. (In practice, this is false with my integrated USB camera with 2 interfaces called “Integrated Camera: Integrated C\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0”. If the name can be expressed as a valid String, it will be. Otherwise, the raw form is used.
function: MediaEntF
Main function of the entity
flags: MediaEntFl
Trait Implementations§
source§impl Debug for MediaV2Entity
impl Debug for MediaV2Entity
source§impl From<media_v2_entity> for MediaV2Entity
impl From<media_v2_entity> for MediaV2Entity
source§fn from(v: media_v2_entity) -> Self
fn from(v: media_v2_entity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MediaV2Entity
impl RefUnwindSafe for MediaV2Entity
impl Send for MediaV2Entity
impl Sync for MediaV2Entity
impl Unpin for MediaV2Entity
impl UnwindSafe for MediaV2Entity
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