Struct puffin::harness::AGENT_INTERFACE
source · #[repr(C)]pub struct AGENT_INTERFACE {
pub destroy: Option<unsafe extern "C" fn(agent: AGENT)>,
pub progress: Option<unsafe extern "C" fn(agent: AGENT) -> RESULT>,
pub reset: Option<unsafe extern "C" fn(agent: AGENT, new_name: u8) -> RESULT>,
pub describe_state: Option<unsafe extern "C" fn(agent: AGENT) -> *const c_char>,
pub is_state_successful: Option<unsafe extern "C" fn(agent: AGENT) -> bool>,
pub register_claimer: Option<unsafe extern "C" fn(agent: AGENT, callback: *const CLAIMER_CB)>,
pub add_inbound: Option<unsafe extern "C" fn(agent: AGENT, bytes: *const u8, length: usize, written: *mut usize) -> RESULT>,
pub take_outbound: Option<unsafe extern "C" fn(agent: AGENT, bytes: *mut u8, max_length: usize, readbytes: *mut usize) -> RESULT>,
}
Fields§
§destroy: Option<unsafe extern "C" fn(agent: AGENT)>
§progress: Option<unsafe extern "C" fn(agent: AGENT) -> RESULT>
§reset: Option<unsafe extern "C" fn(agent: AGENT, new_name: u8) -> RESULT>
§describe_state: Option<unsafe extern "C" fn(agent: AGENT) -> *const c_char>
§is_state_successful: Option<unsafe extern "C" fn(agent: AGENT) -> bool>
§register_claimer: Option<unsafe extern "C" fn(agent: AGENT, callback: *const CLAIMER_CB)>
§add_inbound: Option<unsafe extern "C" fn(agent: AGENT, bytes: *const u8, length: usize, written: *mut usize) -> RESULT>
§take_outbound: Option<unsafe extern "C" fn(agent: AGENT, bytes: *mut u8, max_length: usize, readbytes: *mut usize) -> RESULT>
Trait Implementations§
source§impl Clone for AGENT_INTERFACE
impl Clone for AGENT_INTERFACE
source§fn clone(&self) -> AGENT_INTERFACE
fn clone(&self) -> AGENT_INTERFACE
Returns a copy 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 moresource§impl Debug for AGENT_INTERFACE
impl Debug for AGENT_INTERFACE
source§impl Default for AGENT_INTERFACE
impl Default for AGENT_INTERFACE
source§fn default() -> AGENT_INTERFACE
fn default() -> AGENT_INTERFACE
Returns the “default value” for a type. Read more
source§impl PartialEq for AGENT_INTERFACE
impl PartialEq for AGENT_INTERFACE
impl Copy for AGENT_INTERFACE
impl Eq for AGENT_INTERFACE
impl StructuralPartialEq for AGENT_INTERFACE
Auto Trait Implementations§
impl Freeze for AGENT_INTERFACE
impl RefUnwindSafe for AGENT_INTERFACE
impl Send for AGENT_INTERFACE
impl Sync for AGENT_INTERFACE
impl Unpin for AGENT_INTERFACE
impl UnwindSafe for AGENT_INTERFACE
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.