csp_connect_guarded

Function csp_connect_guarded 

Source
pub fn csp_connect_guarded(
    prio: MsgPriority,
    dst: u16,
    dst_port: u8,
    timeout: Duration,
    opts: ConnectOpts,
) -> Option<CspConnGuard>
Expand description

Rust wrapper for ffi::csp_connect which returns a guard structure. The connection will be be closed automatically when the guard structure is dropped.