Skip to main content

RelaySideOptions

Struct RelaySideOptions 

Source
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: bool

Enables 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: bool

Marks the side as eligible for link-local-only endpoints and discovery routes.

§ingress_enabled: bool

Allows packets received from this side to enter relay processing.

§egress_enabled: bool

Allows the relay to transmit packets toward this side.

§header_template_enabled: bool

Enables side-local header-template reuse for packed transport.

§max_frame_bytes: usize

Maximum 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: usize

Target total side-transport overhead for compact follow-up frames.

§max_side_transport_templates: usize

Maximum side-local header templates retained for TX and RX dictionaries.

§omit_unchanged_compact_timestamps: bool

Omits the timestamp field from compact follow-up frames when it is unchanged.

§compact_timestamp_omission_types: CompactTimestampOmissionPolicy

Optional per-data-type timestamp omission policy for compact follow-up frames.

§side_transport_profile: SideTransportProfile

Declared compact-link profile for stats and future negotiation.

Implementations§

Source§

impl RelaySideOptions

Source

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.

Source

pub fn with_ipv4_like_compact_header_target(self) -> Self

Source

pub fn with_ipv6_like_compact_header_target(self) -> Self

Source

pub fn with_template_transport(self) -> Self

Source

pub fn with_omitted_unchanged_compact_timestamps(self) -> Self

Source

pub fn with_omitted_unchanged_compact_timestamps_for_type( self, ty: DataType, ) -> Self

Source

pub fn effective_transport_profile(self) -> SideTransportProfile

Trait Implementations§

Source§

impl Clone for RelaySideOptions

Source§

fn clone(&self) -> RelaySideOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for RelaySideOptions

Source§

impl Debug for RelaySideOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RelaySideOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.