Struct voicemeeter::interface::callback::data::RawCallbackData
source · pub struct RawCallbackData(/* private fields */);
Available on crate feature
interface
only.Expand description
Raw callback data
Implementations§
source§impl RawCallbackData
impl RawCallbackData
sourcepub unsafe fn as_audio_info<'a>(&self) -> &'a mut AudioInfo
pub unsafe fn as_audio_info<'a>(&self) -> &'a mut AudioInfo
Get the audio information from the raw callback data.
§Safety
- This should not be called without ensuring that the pointer is in “scope” and that it is an
AudioInfo
- All other conditions of NonNull::as_mut has to be met as well
sourcepub unsafe fn as_audio_buffer<'a>(&self) -> &'a mut AudioBuffer
pub unsafe fn as_audio_buffer<'a>(&self) -> &'a mut AudioBuffer
Get the audio information from the raw callback data.
§Safety
- This should not be called without ensuring that the pointer is in “scope” and that it is an
AudioBuffer
- All other conditions of NonNull::as_mut has to be met as well
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RawCallbackData
impl !Send for RawCallbackData
impl !Sync for RawCallbackData
impl Unpin for RawCallbackData
impl UnwindSafe for RawCallbackData
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