Struct libcras::CrasClient
source · pub struct CrasClient {}
Implementations§
source§impl CrasClient
impl CrasClient
pub fn with_type(_: CrasSocketType) -> Result<Self, Error>
pub fn set_client_type(&mut self, _: CrasClientType)
pub fn enable_cras_capture(&mut self)
Trait Implementations§
source§impl<E: Error> ShmStreamSource<E> for CrasClient
impl<E: Error> ShmStreamSource<E> for CrasClient
source§fn new_stream(
&mut self,
_direction: StreamDirection,
_num_channels: usize,
_format: SampleFormat,
_frame_rate: u32,
_buffer_size: usize,
_effects: &[StreamEffect],
_client_shm: &dyn SharedMemory<Error = E>,
_buffer_offsets: [u64; 2]
) -> Result<Box<dyn ShmStream>, BoxError>
fn new_stream( &mut self, _direction: StreamDirection, _num_channels: usize, _format: SampleFormat, _frame_rate: u32, _buffer_size: usize, _effects: &[StreamEffect], _client_shm: &dyn SharedMemory<Error = E>, _buffer_offsets: [u64; 2] ) -> Result<Box<dyn ShmStream>, BoxError>
Creates a new [
ShmStream
] Read moreAuto Trait Implementations§
impl RefUnwindSafe for CrasClient
impl Send for CrasClient
impl Sync for CrasClient
impl Unpin for CrasClient
impl UnwindSafe for CrasClient
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