pub struct MediaLink { /* private fields */ }Implementations§
Source§impl MediaLink
impl MediaLink
pub fn new(id: LinkId, type: LinkType, flags: MediaLinkFlags) -> Self
Sourcepub fn id(&self) -> LinkId
pub fn id(&self) -> LinkId
Unique ID for the link. Do not expect that the ID will always be the same for each instance of the device. In other words, do not hardcode link IDs in an application.
pub fn type(&self) -> &LinkType
pub fn flags(&self) -> MediaLinkFlags
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MediaLink
impl<'de> Deserialize<'de> for MediaLink
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_link> for MediaLink
impl From<media_v2_link> for MediaLink
Source§fn from(link: media_v2_link) -> Self
fn from(link: media_v2_link) -> Self
Converts to this type from the input type.
Source§impl Ord for MediaLink
impl Ord for MediaLink
Source§impl PartialOrd for MediaLink
impl PartialOrd for MediaLink
impl Eq for MediaLink
impl StructuralPartialEq for MediaLink
Auto Trait Implementations§
impl Freeze for MediaLink
impl RefUnwindSafe for MediaLink
impl Send for MediaLink
impl Sync for MediaLink
impl Unpin for MediaLink
impl UnsafeUnpin for MediaLink
impl UnwindSafe for MediaLink
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