pub struct SetSinkToUse {
pub method: SetSinkToUseMethod,
pub params: SetSinkToUseParams,
}Expand description
Sets a sink to be used when the web page requests the browser to choose a sink via Presentation API, Remote Playback API, or Cast SDK. setSinkToUse
Fields§
§method: SetSinkToUseMethod§params: SetSinkToUseParamsImplementations§
Source§impl SetSinkToUse
impl SetSinkToUse
pub fn builder() -> SetSinkToUseBuilder
Source§impl SetSinkToUse
impl SetSinkToUse
pub const IDENTIFIER: &'static str = "Cast.setSinkToUse"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for SetSinkToUse
impl Clone for SetSinkToUse
Source§fn clone(&self) -> SetSinkToUse
fn clone(&self) -> SetSinkToUse
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 CommandResult for SetSinkToUse
impl CommandResult for SetSinkToUse
type Result = SetSinkToUseResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for SetSinkToUse
impl Debug for SetSinkToUse
Source§impl<'de> Deserialize<'de> for SetSinkToUse
impl<'de> Deserialize<'de> for SetSinkToUse
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<SetSinkToUse> for BrowserProtocolCommands
impl From<SetSinkToUse> for BrowserProtocolCommands
Source§fn from(v: SetSinkToUse) -> Self
fn from(v: SetSinkToUse) -> Self
Converts to this type from the input type.
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<SetSinkToUse> for Command
impl From<SetSinkToUse> for Command
Source§fn from(v: SetSinkToUse) -> Self
fn from(v: SetSinkToUse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetSinkToUse
impl PartialEq for SetSinkToUse
Source§impl Serialize for SetSinkToUse
impl Serialize for SetSinkToUse
Source§impl TryFrom<BrowserProtocolCommands> for SetSinkToUse
impl TryFrom<BrowserProtocolCommands> for SetSinkToUse
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, <SetSinkToUse as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <SetSinkToUse as TryFrom<BrowserProtocolCommands>>::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<Command> for SetSinkToUse
impl TryFrom<Command> for SetSinkToUse
impl StructuralPartialEq for SetSinkToUse
Auto Trait Implementations§
impl Freeze for SetSinkToUse
impl RefUnwindSafe for SetSinkToUse
impl Send for SetSinkToUse
impl Sync for SetSinkToUse
impl Unpin for SetSinkToUse
impl UnsafeUnpin for SetSinkToUse
impl UnwindSafe for SetSinkToUse
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