pub struct RelaySideOptions {
pub reliable_enabled: bool,
pub link_local_enabled: bool,
pub ingress_enabled: bool,
pub egress_enabled: bool,
pub header_template_enabled: bool,
pub max_frame_bytes: usize,
pub compact_header_target_bytes: usize,
pub max_side_transport_templates: usize,
pub omit_unchanged_compact_timestamps: bool,
pub compact_timestamp_omission_types: CompactTimestampOmissionPolicy,
pub side_transport_profile: SideTransportProfile,
}Fields§
§reliable_enabled: boolEnables the relay’s per-link reliable transport layer on this side.
When true and the side uses a packed TX handler, reliable schema traffic on this hop
gains relay-managed sequence numbers, ACKs, packet requests, and retransmits.
Packet-output sides still receive decoded packets rather than packed reliable framing.
link_local_enabled: boolMarks the side as eligible for link-local-only endpoints and discovery routes.
ingress_enabled: boolAllows packets received from this side to enter relay processing.
egress_enabled: boolAllows the relay to transmit packets toward this side.
header_template_enabled: boolEnables side-local header-template reuse for packed transport.
max_frame_bytes: usizeMaximum number of bytes to emit per packed TX callback.
When non-zero and a packed frame would exceed this size, the relay splits it into ordered side-transport chunks and reassembles them on RX before normal relay processing. This is intended for fixed-size links such as CAN or I2C while keeping the user API packet-oriented.
compact_header_target_bytes: usizeTarget total side-transport overhead for compact follow-up frames.
max_side_transport_templates: usizeMaximum side-local header templates retained for TX and RX dictionaries.
omit_unchanged_compact_timestamps: boolOmits the timestamp field from compact follow-up frames when it is unchanged.
compact_timestamp_omission_types: CompactTimestampOmissionPolicyOptional per-data-type timestamp omission policy for compact follow-up frames.
side_transport_profile: SideTransportProfileDeclared compact-link profile for stats and future negotiation.
Implementations§
Source§impl RelaySideOptions
impl RelaySideOptions
Sourcepub fn with_small_packet_transport(self, max_frame_bytes: usize) -> Self
pub fn with_small_packet_transport(self, max_frame_bytes: usize) -> Self
Convenience preset for bounded packed-side transport.
max_frame_bytes == 0 leaves packed frames unbounded. Values greater
than zero enable relay-managed chunking/reassembly on this side.
pub fn with_ipv4_like_compact_header_target(self) -> Self
pub fn with_ipv6_like_compact_header_target(self) -> Self
pub fn with_template_transport(self) -> Self
pub fn with_omitted_unchanged_compact_timestamps(self) -> Self
pub fn with_omitted_unchanged_compact_timestamps_for_type( self, ty: DataType, ) -> Self
pub fn effective_transport_profile(self) -> SideTransportProfile
pub fn link_capabilities(self) -> LinkCapabilities
Trait Implementations§
Source§impl Clone for RelaySideOptions
impl Clone for RelaySideOptions
Source§fn clone(&self) -> RelaySideOptions
fn clone(&self) -> RelaySideOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more