pub struct StreamSettings { /* private fields */ }Expand description
Struct to store the settings for a specific stream on your device
Implementations§
Source§impl StreamSettings
impl StreamSettings
Sourcepub fn new(resp: &ControlResponse) -> PolarResult<StreamSettings>
pub fn new(resp: &ControlResponse) -> PolarResult<StreamSettings>
Create new stream settings
Sourcepub fn resolution(&self) -> u8
pub fn resolution(&self) -> u8
Getter for the resolution (in bits)
Sourcepub fn sample_rate(&self) -> &Vec<u8> ⓘ
pub fn sample_rate(&self) -> &Vec<u8> ⓘ
Getter for sample rates (in Hz)
Trait Implementations§
Source§impl Debug for StreamSettings
impl Debug for StreamSettings
Source§impl PartialEq for StreamSettings
impl PartialEq for StreamSettings
impl Eq for StreamSettings
impl StructuralPartialEq for StreamSettings
Auto Trait Implementations§
impl Freeze for StreamSettings
impl RefUnwindSafe for StreamSettings
impl Send for StreamSettings
impl Sync for StreamSettings
impl Unpin for StreamSettings
impl UnwindSafe for StreamSettings
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