Enum rust_cast::channels::media::MediaResponse [] [src]

pub enum MediaResponse {
    Status(Status),
    LoadCancelled(LoadCancelled),
    LoadFailed(LoadFailed),
    InvalidPlayerState(InvalidPlayerState),
    InvalidRequest(InvalidRequest),
    NotImplemented(StringValue),
}

Represents all currently supported incoming messages that media channel can handle.

Variants

Statuses of the currently active media.

Sent when the load request was cancelled (a second load request was received).

Sent when the load request failed. The player state will be IDLE.

Sent when the request by the sender can not be fulfilled because the player is not in a valid state. For example, if the application has not created a media element yet.

Error indicating that request is not valid.

Used every time when channel can't parse the message. Associated data contains type string field and raw JSON data returned from cast device.

Trait Implementations

impl Debug for MediaResponse
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MediaResponse

impl Sync for MediaResponse