Skip to main content

aeron_agent_runner_t

Type Alias aeron_agent_runner_t 

Source
pub type aeron_agent_runner_t = aeron_agent_runner_stct;

Aliased Type§

#[repr(C)]
pub struct aeron_agent_runner_t { pub role_name: *const i8, pub agent_state: *mut c_void, pub idle_strategy_state: *mut c_void, pub on_start_state: *mut c_void, pub on_start: Option<unsafe extern "C" fn(*mut c_void, *const i8)>, pub do_work: Option<unsafe extern "C" fn(*mut c_void) -> i32>, pub on_close: Option<unsafe extern "C" fn(*mut c_void)>, pub idle_strategy: Option<unsafe extern "C" fn(*mut c_void, i32)>, pub thread: u64, pub running: bool, pub state: u8, }

Fields§

§role_name: *const i8§agent_state: *mut c_void§idle_strategy_state: *mut c_void§on_start_state: *mut c_void§on_start: Option<unsafe extern "C" fn(*mut c_void, *const i8)>§do_work: Option<unsafe extern "C" fn(*mut c_void) -> i32>§on_close: Option<unsafe extern "C" fn(*mut c_void)>§idle_strategy: Option<unsafe extern "C" fn(*mut c_void, i32)>§thread: u64§running: bool§state: u8

Trait Implementations§

Source§

impl<S: ResourceStorage<aeron_agent_runner_t>> From<AeronAgentRunner<S>> for aeron_agent_runner_t

Source§

fn from(value: AeronAgentRunner<S>) -> Self

Converts to this type from the input type.
Source§

impl NativeResource for aeron_agent_runner_t

Source§

type Policy = LocalResource

Source§

type Pointer = ReloadPointer

How an owning handle reads its native pointer. Cached pointers are only valid when native calls cannot release or replace the allocation.