#[repr(C)]pub struct csp_conn_s {Show 13 fields
pub type_: atomic_int,
pub state: atomic_int,
pub idin: csp_id_t,
pub idout: csp_id_t,
pub sport_outgoing: u8,
pub rx_queue: csp_queue_handle_t,
pub rx_queue_static: csp_static_queue_t,
pub rx_queue_static_data: [c_char; 128],
pub callback: Option<unsafe extern "C" fn(packet: *mut csp_packet_t)>,
pub dest_socket: *mut csp_socket_t,
pub timestamp: u32,
pub opts: u32,
pub rdp: csp_rdp_t,
}Expand description
@brief Connection struct
Fields§
§type_: atomic_int§state: atomic_int§idin: csp_id_t§idout: csp_id_t§sport_outgoing: u8§rx_queue: csp_queue_handle_t§rx_queue_static: csp_static_queue_t§rx_queue_static_data: [c_char; 128]§callback: Option<unsafe extern "C" fn(packet: *mut csp_packet_t)>§dest_socket: *mut csp_socket_t§timestamp: u32§opts: u32§rdp: csp_rdp_tTrait Implementations§
Source§impl Clone for csp_conn_s
impl Clone for csp_conn_s
Source§fn clone(&self) -> csp_conn_s
fn clone(&self) -> csp_conn_s
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 moreimpl Copy for csp_conn_s
Auto Trait Implementations§
impl Freeze for csp_conn_s
impl RefUnwindSafe for csp_conn_s
impl !Send for csp_conn_s
impl !Sync for csp_conn_s
impl Unpin for csp_conn_s
impl UnwindSafe for csp_conn_s
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