#[repr(C)]pub struct PamojaCoapConfig {
pub host: *const c_char,
pub port: u16,
pub bind: *const c_char,
pub reliability: PamojaCoapReliability,
pub ack_timeout_ms: u32,
pub max_retransmits: u32,
}Expand description
The settings a CoAP endpoint is built from.
Fields§
§host: *const c_charThe peer hostname or IP address, as null-terminated UTF-8.
port: u16The peer UDP port, conventionally 5683 for plaintext CoAP.
bind: *const c_charThe local address to bind, or null for the default.
reliability: PamojaCoapReliabilityWhether requests are acknowledged and retried.
ack_timeout_ms: u32How long to wait for an acknowledgement, in milliseconds, or 0 for the default.
max_retransmits: u32How many times to retransmit an unacknowledged request, or 0 for the default.
Trait Implementations§
Source§impl Clone for PamojaCoapConfig
impl Clone for PamojaCoapConfig
Source§fn clone(&self) -> PamojaCoapConfig
fn clone(&self) -> PamojaCoapConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaCoapConfig
Auto Trait Implementations§
impl !Send for PamojaCoapConfig
impl !Sync for PamojaCoapConfig
impl Freeze for PamojaCoapConfig
impl RefUnwindSafe for PamojaCoapConfig
impl Unpin for PamojaCoapConfig
impl UnsafeUnpin for PamojaCoapConfig
impl UnwindSafe for PamojaCoapConfig
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