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]
fn supported_formats(
&self
) -> Result<SupportedFormatsIterator, FormatsEnumerationError>
[src]
&self
) -> Result<SupportedFormatsIterator, FormatsEnumerationError>
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.
fn get_supported_formats_list(
&self
) -> Result<SupportedFormatsIterator, FormatsEnumerationError>
[src]
&self
) -> Result<SupportedFormatsIterator, FormatsEnumerationError>
Deprecated
Deprecated. Use supported_formats
instead.
fn name(&self) -> String
[src]
Returns the name of the endpoint.
fn get_name(&self) -> String
[src]
Deprecated
Deprecated. Use name()
instead.
Trait Implementations
impl Clone for Endpoint
[src]
fn clone(&self) -> Endpoint
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more