pub struct SenderConfig {
pub source_address: Address,
pub apid: Apid,
pub function_code: u8,
pub rto_ticks: u32,
pub max_retransmits: u8,
pub header_overhead: usize,
}Expand description
Configuration for the sender.
Fields§
§source_address: AddressLocal source address for outgoing packets.
apid: ApidAPID used for all packets from this sender.
function_code: u8cFE function code for outgoing packets.
rto_ticks: u32Retransmission timeout in ticks.
max_retransmits: u8Maximum number of retransmission attempts per packet.
header_overhead: usizeTotal header overhead per packet in bytes.
Implementations§
Source§impl SenderConfig
impl SenderConfig
Sourcepub fn builder() -> SenderConfigBuilder
pub fn builder() -> SenderConfigBuilder
Create an instance of SenderConfig using the builder syntax
Trait Implementations§
Source§impl Clone for SenderConfig
impl Clone for SenderConfig
Source§fn clone(&self) -> SenderConfig
fn clone(&self) -> SenderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SenderConfig
impl RefUnwindSafe for SenderConfig
impl Send for SenderConfig
impl Sync for SenderConfig
impl Unpin for SenderConfig
impl UnsafeUnpin for SenderConfig
impl UnwindSafe for SenderConfig
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