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