Struct rust_cast::channels::receiver::ReceiverChannel [] [src]

pub struct ReceiverChannel<'a, W> where
    W: Write + Read
{ /* fields omitted */ }

Methods

impl<'a, W> ReceiverChannel<'a, W> where
    W: Write + Read
[src]

[src]

[src]

Launches the specified receiver's application.

Examples

cast_device.receiver.launch_app(&CastDeviceApp::from_str("youtube").unwrap());

Arguments

  • app - CastDeviceApp instance reference to run.

[src]

Stops currently active app using corresponding session_id.

Arguments

  • session_id - identifier of the active application session from Application instance.

[src]

Retrieves status of the cast device receiver.

Return value

Returned Result should consist of either Status instance or an Error.

[src]

Sets volume for the active cast device.

Arguments

  • volume - anything that can be converted to a valid Volume structure. It's possible to set volume level, mute/unmute state or both altogether.

Return value

Actual Volume instance returned by receiver.

Errors

Usually method can fail only if network connection with cast device is lost for some reason.

[src]

[src]

Trait Implementations

Auto Trait Implementations

impl<'a, W> !Send for ReceiverChannel<'a, W>

impl<'a, W> !Sync for ReceiverChannel<'a, W>