pub struct EventTx<T> { /* private fields */ }Implementations§
Source§impl<T: Encode> EventTx<T>
impl<T: Encode> EventTx<T>
pub fn new(packet_sender: PacketSender, plane_id: u32, topic: u32) -> Self
pub fn plane_id(&self) -> u32
pub fn topic(&self) -> u32
pub fn try_send(&self, payload: impl Encode + Compatible<T>) -> bool
pub async fn send(&self, payload: impl Encode + Compatible<T>)
pub async unsafe fn send_buffer(&self, buffer: BufferPtr)
pub fn cast<NewT>(self) -> EventTx<NewT>where
NewT: Encode + Compatible<T>,
Trait Implementations§
impl<T> Eq for EventTx<T>
Auto Trait Implementations§
impl<T> Freeze for EventTx<T>
impl<T> !RefUnwindSafe for EventTx<T>
impl<T> !Send for EventTx<T>
impl<T> !Sync for EventTx<T>
impl<T> Unpin for EventTx<T>where
T: Unpin,
impl<T> !UnwindSafe for EventTx<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.