Struct rodio::Endpoint [] [src]

pub struct Endpoint(_);

An opaque type that identifies an endpoint that is capable of playing audio.

Please note that endpoints may become invalid if they get disconnected. Therefore all the methods that involve an endpoint return a Result.

Methods

impl Endpoint
[src]

[src]

Returns an iterator that produces the list of formats that are supported by the backend.

Can return an error if the endpoint is no longer valid (eg. it has been disconnected). The returned iterator should never be empty.

[src]

Deprecated

Deprecated. Use supported_formats instead.

[src]

Returns the name of the endpoint.

[src]

Deprecated

Deprecated. Use name() instead.

Trait Implementations

impl Clone for Endpoint
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Endpoint
[src]

impl PartialEq<Endpoint> for Endpoint
[src]

[src]

[src]