pub enum MediaCommands {
Enable(Enable),
Disable(Disable),
}Variants§
Implementations§
Source§impl MediaCommands
impl MediaCommands
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for MediaCommands
impl Clone for MediaCommands
Source§fn clone(&self) -> MediaCommands
fn clone(&self) -> MediaCommands
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 MediaCommands
impl Debug for MediaCommands
Source§impl<'de> Deserialize<'de> for MediaCommands
impl<'de> Deserialize<'de> for MediaCommands
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<Disable> for MediaCommands
impl From<Disable> for MediaCommands
Source§impl From<Enable> for MediaCommands
impl From<Enable> for MediaCommands
Source§impl From<MediaCommands> for BrowserProtocolCommands
impl From<MediaCommands> for BrowserProtocolCommands
Source§fn from(v: MediaCommands) -> Self
fn from(v: MediaCommands) -> Self
Converts to this type from the input type.
Source§impl From<MediaCommands> for Command
impl From<MediaCommands> for Command
Source§fn from(v: MediaCommands) -> Self
fn from(v: MediaCommands) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MediaCommands
impl PartialEq for MediaCommands
Source§impl Serialize for MediaCommands
impl Serialize for MediaCommands
Source§impl TryFrom<BrowserProtocolCommands> for MediaCommands
impl TryFrom<BrowserProtocolCommands> for MediaCommands
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <MediaCommands as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <MediaCommands as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for MediaCommands
impl TryFrom<Command> for MediaCommands
Source§impl TryFrom<MediaCommands> for Disable
impl TryFrom<MediaCommands> for Disable
Source§type Error = MediaCommands
type Error = MediaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MediaCommands,
) -> Result<Self, <Disable as TryFrom<MediaCommands>>::Error>
fn try_from( e: MediaCommands, ) -> Result<Self, <Disable as TryFrom<MediaCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<MediaCommands> for Enable
impl TryFrom<MediaCommands> for Enable
Source§type Error = MediaCommands
type Error = MediaCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: MediaCommands,
) -> Result<Self, <Enable as TryFrom<MediaCommands>>::Error>
fn try_from( e: MediaCommands, ) -> Result<Self, <Enable as TryFrom<MediaCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for MediaCommands
Auto Trait Implementations§
impl Freeze for MediaCommands
impl RefUnwindSafe for MediaCommands
impl Send for MediaCommands
impl Sync for MediaCommands
impl Unpin for MediaCommands
impl UnsafeUnpin for MediaCommands
impl UnwindSafe for MediaCommands
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