#[repr(C)]pub struct ucp_worker_attr {
pub field_mask: u64,
pub thread_mode: ucs_thread_mode_t,
pub address_flags: u32,
pub address: *mut ucp_address_t,
pub address_length: size_t,
pub max_am_header: size_t,
pub name: [c_char; 32],
pub max_debug_string: size_t,
}Expand description
@ingroup UCP_WORKER @brief UCP worker attributes.
The structure defines the attributes which characterize the particular worker.
Fields§
§field_mask: u64Mask of valid fields in this structure, using bits from @ref ucp_worker_attr_field. Fields not specified in this mask will be ignored. Provides ABI compatibility with respect to adding new fields.
thread_mode: ucs_thread_mode_tThread safe level of the worker.
address_flags: u32Flags indicating requested details of the worker address. If @ref UCP_WORKER_ATTR_FIELD_ADDRESS_FLAGS bit is set in the field_mask, this value should be set as well. Possible flags are specified in @ref ucp_worker_address_flags_t. @note This is an input attribute.
address: *mut ucp_address_tWorker address, which can be passed to remote instances of the UCP library in order to connect to this worker. The memory for the address handle is allocated by @ref ucp_worker_query “ucp_worker_query()” routine, and must be released by using @ref ucp_worker_release_address “ucp_worker_release_address()” routine.
address_length: size_tSize of worker address in bytes.
max_am_header: size_tMaximum allowed header size for @ref ucp_am_send_nbx routine.
name: [c_char; 32]Tracing and analysis tools can identify the worker using this name.
max_debug_string: size_tMaximum debug string size that can be filled with @ref ucp_request_query.
Trait Implementations§
Source§impl Clone for ucp_worker_attr
impl Clone for ucp_worker_attr
Source§fn clone(&self) -> ucp_worker_attr
fn clone(&self) -> ucp_worker_attr
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more