pub struct MediaInterface { /* private fields */ }Implementations§
Source§impl MediaInterface
impl MediaInterface
pub fn new( id: InterfaceId, type: MediaInterfaceType, devnode: MediaIntfDevnode, ) -> Self
Sourcepub fn id(&self) -> InterfaceId
pub fn id(&self) -> InterfaceId
Get ID of this interface
Sourcepub fn type(&self) -> MediaInterfaceType
pub fn type(&self) -> MediaInterfaceType
Get media interface type of this interface
Sourcepub fn devnode(&self) -> MediaIntfDevnode
pub fn devnode(&self) -> MediaIntfDevnode
Get devnode of this interface
Trait Implementations§
Source§impl Clone for MediaInterface
impl Clone for MediaInterface
Source§fn clone(&self) -> MediaInterface
fn clone(&self) -> MediaInterface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MediaInterface
impl Debug for MediaInterface
Source§impl<'de> Deserialize<'de> for MediaInterface
impl<'de> Deserialize<'de> for MediaInterface
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<media_v2_interface> for MediaInterface
impl From<media_v2_interface> for MediaInterface
Source§fn from(intf: media_v2_interface) -> Self
fn from(intf: media_v2_interface) -> Self
Converts to this type from the input type.
Source§impl Ord for MediaInterface
impl Ord for MediaInterface
Source§fn cmp(&self, other: &MediaInterface) -> Ordering
fn cmp(&self, other: &MediaInterface) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MediaInterface
impl PartialEq for MediaInterface
Source§impl PartialOrd for MediaInterface
impl PartialOrd for MediaInterface
Source§impl Serialize for MediaInterface
impl Serialize for MediaInterface
impl Eq for MediaInterface
impl StructuralPartialEq for MediaInterface
Auto Trait Implementations§
impl Freeze for MediaInterface
impl RefUnwindSafe for MediaInterface
impl Send for MediaInterface
impl Sync for MediaInterface
impl Unpin for MediaInterface
impl UnsafeUnpin for MediaInterface
impl UnwindSafe for MediaInterface
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