pub struct SourceConfig {
pub source: String,
pub target: Option<String>,
pub channel: Option<u16>,
pub bandwidth_mhz: Option<u16>,
pub replay_speed: Option<f32>,
pub options_json: Option<String>,
}Expand description
Parameters for opening a source (mirrors the TS SDK RvCsi.open(...) shape).
Fields§
§source: StringSource slug: "file", "replay", "nexmon", "esp32", "intel", "atheros".
target: Option<String>Network interface ("wlan0"), serial port ("/dev/ttyUSB0"), or file path.
channel: Option<u16>WiFi channel (live sources only).
bandwidth_mhz: Option<u16>Bandwidth in MHz (live sources only).
replay_speed: Option<f32>Replay speed multiplier (1.0 = real time); replay source only.
options_json: Option<String>Free-form adapter-specific options.
Implementations§
Source§impl SourceConfig
impl SourceConfig
Trait Implementations§
Source§impl Clone for SourceConfig
impl Clone for SourceConfig
Source§fn clone(&self) -> SourceConfig
fn clone(&self) -> SourceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourceConfig
impl Debug for SourceConfig
Source§impl<'de> Deserialize<'de> for SourceConfig
impl<'de> Deserialize<'de> for SourceConfig
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
Source§impl PartialEq for SourceConfig
impl PartialEq for SourceConfig
Source§fn eq(&self, other: &SourceConfig) -> bool
fn eq(&self, other: &SourceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceConfig
impl Serialize for SourceConfig
impl StructuralPartialEq for SourceConfig
Auto Trait Implementations§
impl Freeze for SourceConfig
impl RefUnwindSafe for SourceConfig
impl Send for SourceConfig
impl Sync for SourceConfig
impl Unpin for SourceConfig
impl UnsafeUnpin for SourceConfig
impl UnwindSafe for SourceConfig
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