pub struct ChannelConfig {
pub id: ChannelId,
pub endpoints: [DeviceId; 2],
pub bit_rate_bps: u64,
pub propagation_delay_ns: u64,
pub state: ChannelState,
pub distance: Option<DistanceChannel>,
pub radio: Option<RadioChannel>,
}Expand description
A serializable point-to-point channel definition.
Fields§
§id: ChannelIdThe unique channel identifier.
endpoints: [DeviceId; 2]The two devices connected by the channel.
bit_rate_bps: u64The nominal transmission rate in bits per second.
propagation_delay_ns: u64Fixed one-way delay in nanoseconds.
Distance-derived propagation delay is added to this value.
state: ChannelStateThe channel’s initial availability and effective rate.
distance: Option<DistanceChannel>Optional distance-derived propagation, range, and rate behavior.
radio: Option<RadioChannel>Optional spectrum and interference response for a wireless channel.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Source§impl<'de> Deserialize<'de> for ChannelConfig
impl<'de> Deserialize<'de> for ChannelConfig
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 ChannelConfig
impl PartialEq for ChannelConfig
Source§impl Serialize for ChannelConfig
impl Serialize for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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