pub struct Cable {
pub id: CableId,
pub from: PortRef,
pub to: PortRef,
pub attenuation: Option<f64>,
pub offset: Option<f64>,
}Expand description
A cable connecting two ports
Fields§
§id: CableIdStable identifier assigned at connect time (see CableId).
from: PortRef§to: PortRef§attenuation: Option<f64>Optional attenuation/gain (-2.0 to 2.0, where 1.0 = unity) Negative values invert the signal (attenuverter behavior)
offset: Option<f64>Optional DC offset added after attenuation (-10.0 to 10.0V)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cable
impl<'de> Deserialize<'de> for Cable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Cable
impl RefUnwindSafe for Cable
impl Send for Cable
impl Sync for Cable
impl Unpin for Cable
impl UnsafeUnpin for Cable
impl UnwindSafe for Cable
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