[][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.

Implementations

impl Host[src]

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

The unique identifier associated with this host.

Trait Implementations

impl From<Host> for Host[src]

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.

Auto Trait Implementations

impl RefUnwindSafe for Host

impl Send for Host

impl Sync for Host

impl Unpin for Host

impl UnwindSafe for Host

Blanket Implementations

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

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

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

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.