pub struct PkCommandConfig { /* private fields */ }Expand description
Configuration for the PkCommand state machine.
Implementations§
Source§impl PkCommandConfig
impl PkCommandConfig
Sourcepub fn default(packet_limit: u64) -> Self
pub fn default(packet_limit: u64) -> Self
Creates a PkCommandConfig with default timeout values.
§Arguments
packet_limit: The maximum packet size allowed by the transport layer.
Sourcepub fn new(
ack_timeout: u64,
inter_command_timeout: u64,
await_interval: u64,
packet_limit: u64,
) -> Self
pub fn new( ack_timeout: u64, inter_command_timeout: u64, await_interval: u64, packet_limit: u64, ) -> Self
Creates a new PkCommandConfig with specified values.
§Arguments
ack_timeout: ACK timeout in milliseconds.inter_command_timeout: Inter-command timeout in milliseconds.await_interval: AWAIT interval in milliseconds.packet_limit: The maximum packet size allowed by the transport layer.
Trait Implementations§
Source§impl Clone for PkCommandConfig
impl Clone for PkCommandConfig
Source§fn clone(&self) -> PkCommandConfig
fn clone(&self) -> PkCommandConfig
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 PkCommandConfig
impl RefUnwindSafe for PkCommandConfig
impl Send for PkCommandConfig
impl Sync for PkCommandConfig
impl Unpin for PkCommandConfig
impl UnwindSafe for PkCommandConfig
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