Struct voicemeeter::interface::callback::data::BufferMainData
source · pub struct BufferMainData<'a> {
pub read: ReadDevices<'a, 'a>,
pub write: WriteDevices<'a, 'a>,
}
Available on crate feature
interface
only.Expand description
Buffer for main mode.
Retrieved via CallbackCommand::BufferMain
Fields§
§read: ReadDevices<'a, 'a>
Read
write: WriteDevices<'a, 'a>
Write
Implementations§
source§impl<'a> BufferMainData<'a>
impl<'a> BufferMainData<'a>
sourcepub fn get_buffers(self) -> (ReadDevices<'a, 'a>, WriteDevices<'a, 'a>)
pub fn get_buffers(self) -> (ReadDevices<'a, 'a>, WriteDevices<'a, 'a>)
Convenience function to get the read and write buffers
let (read, mut write) = data.buffer.get_buffers();
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BufferMainData<'a>
impl<'a> Send for BufferMainData<'a>
impl<'a> Sync for BufferMainData<'a>
impl<'a> Unpin for BufferMainData<'a>
impl<'a> !UnwindSafe for BufferMainData<'a>
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