[][src]Struct cpal::Host

pub struct Host(_);

The platform's dynamically dispatched Host type.

An instance of this Host type may represent one of any of the Hosts available on the platform.

Use this type if you require switching between available hosts at runtime.

This type may be constructed via the host_from_id function. HostIds may be acquired via the ALL_HOSTS const and the available_hosts function.

Methods

impl Host[src]

pub fn id(&self) -> HostId[src]

The unique identifier associated with this host.

Trait Implementations

impl HostTrait for Host[src]

type Devices = Devices

The type used for enumerating available devices by the host.

type Device = Device

The Device type yielded by the host.

type EventLoop = EventLoop

The event loop type used by the Host

fn input_devices(&self) -> Result<InputDevices<Self::Devices>, DevicesError>[src]

An iterator yielding all Devices currently available to the system that support one or more input stream formats. Read more

fn output_devices(&self) -> Result<OutputDevices<Self::Devices>, DevicesError>[src]

An iterator yielding all Devices currently available to the system that support one or more output stream formats. Read more

impl From<Host> for Host[src]

Auto Trait Implementations

impl Send for Host

impl Unpin for Host

impl Sync for Host

impl UnwindSafe for Host

impl RefUnwindSafe for Host

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]