Trait Device

Source
pub unsafe trait Device {
    // Required method
    fn as_ptr(&self) -> *const ALCdevice;

    // Provided method
    fn as_mut_ptr(&mut self) -> *mut ALCdevice { ... }
}
Expand description

Internal trait specifying the type is an OpenAL device.

Required Methods§

Source

fn as_ptr(&self) -> *const ALCdevice

Return a *const pointer for the device.

Provided Methods§

Source

fn as_mut_ptr(&mut self) -> *mut ALCdevice

Return a *mut pointer for the device.

Implementations on Foreign Types§

Source§

impl Device for *const ALCdevice

Source§

impl Device for *mut ALCdevice

Implementors§

Source§

impl Device for dyn Context

Source§

impl<'a> Device for Listener<'a>

Source§

impl<T: Sample> Device for Capture<T>