pub struct GainElement {
pub name: GainElementName,
pub value_db: f64,
}Expand description
Individual gain element configuration
Represents a named gain element with its value in dB. Different SDR devices support different gain elements (e.g., TUNER, LNA, MIX, IF, PGA).
Fields§
§name: GainElementName§value_db: f64Trait Implementations§
Source§impl Clone for GainElement
impl Clone for GainElement
Source§fn clone(&self) -> GainElement
fn clone(&self) -> GainElement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GainElement
impl Debug for GainElement
Source§impl PartialEq for GainElement
impl PartialEq for GainElement
Source§impl Serialize for GainElement
impl Serialize for GainElement
impl StructuralPartialEq for GainElement
Auto Trait Implementations§
impl Freeze for GainElement
impl RefUnwindSafe for GainElement
impl Send for GainElement
impl Sync for GainElement
impl Unpin for GainElement
impl UnwindSafe for GainElement
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