pub struct StreamHandle<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> { /* private fields */ }Expand description
An exclusive reservation of one application stream; dropping it frees the slot.
Implementations§
Source§impl<const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> StreamHandle<'_, S, B, F, O, Q>
impl<const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> StreamHandle<'_, S, B, F, O, Q>
pub fn configuration(&self) -> Configuration
pub fn start(&self) -> Result<()>
pub fn stop(&self) -> Result<()>
pub fn flush(&self) -> Result<()>
pub fn set_volume(&self, volume: u8) -> Result<()>
pub fn volume(&self) -> Result<u8>
Trait Implementations§
Auto Trait Implementations§
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> Freeze for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> !RefUnwindSafe for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> Send for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> Sync for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> Unpin for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> UnsafeUnpin for StreamHandle<'a, S, B, F, O, Q>
impl<'a, const S: usize, const B: usize, const F: usize, const O: usize, const Q: usize> !UnwindSafe for StreamHandle<'a, S, B, F, O, Q>
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