Struct linear_model_allen::Device
source · pub struct Device { /* private fields */ }
Expand description
An OpenAL device.
Implementations§
source§impl Device
impl Device
sourcepub fn open(device_name: Option<&CStr>) -> Option<Self>
pub fn open(device_name: Option<&CStr>) -> Option<Self>
Opens a device with the specified name. Passing None
will open the default device.
sourcepub fn device_name(&self) -> &str
pub fn device_name(&self) -> &str
The name of the device.
sourcepub fn create_context(&self) -> Result<Context, AllenError>
pub fn create_context(&self) -> Result<Context, AllenError>
Creates a context under the device.
pub fn is_extension_present(&self, name: &CStr) -> Result<bool, AllenError>
pub fn check_alc_extension(&self, name: &CStr) -> Result<(), AllenError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl !Send for Device
impl !Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more