#[repr(C)]pub struct async_receiver {
pub state: async_state_t,
pub handler: async_receiver_handler_t,
}Expand description
Holds content for a packet receiver and its handler.
After successfully queuing packets to the receiver, the client is responsible for retaining the structure in memory (and unmodified) until all packets have been received by the handler or the dispatcher shuts down. There is no way to cancel a packet which has been queued.
Multiple packets may be delivered to the same receiver concurrently.
Fields§
§state: async_state_tPrivate state owned by the dispatcher, initialize to zero with |ASYNC_STATE_INIT|.
handler: async_receiver_handler_tThe handler to invoke when a packet is received.
Trait Implementations§
Source§impl Clone for async_receiver
impl Clone for async_receiver
Source§fn clone(&self) -> async_receiver
fn clone(&self) -> async_receiver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 async_receiver
impl Debug for async_receiver
Source§impl Default for async_receiver
impl Default for async_receiver
Source§fn default() -> async_receiver
fn default() -> async_receiver
Returns the “default value” for a type. Read more
impl Copy for async_receiver
Auto Trait Implementations§
impl Freeze for async_receiver
impl RefUnwindSafe for async_receiver
impl Send for async_receiver
impl Sync for async_receiver
impl Unpin for async_receiver
impl UnsafeUnpin for async_receiver
impl UnwindSafe for async_receiver
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