pub struct ArchiveEventSubscriber<M>where
M: ArchiveCodec,{ /* private fields */ }Expand description
Handle for a single event subscriber
Implementations§
Source§impl<M> ArchiveEventSubscriber<M>where
M: ArchiveCodec,
impl<M> ArchiveEventSubscriber<M>where
M: ArchiveCodec,
Sourcepub fn send(&self, msg: &M) -> Result<Result, Error>
pub fn send(&self, msg: &M) -> Result<Result, Error>
Send the event to the subscriber.
Warning: Cannot be used in an IRQ handler context.
Sourcepub fn send_nowait(&self, msg: &M) -> Result<Result, Error>
pub fn send_nowait(&self, msg: &M) -> Result<Result, Error>
Send the event to the subscriber.
pub fn pid(&self) -> PID
pub fn cid(&self) -> CID
Trait Implementations§
Source§impl<M> Debug for ArchiveEventSubscriber<M>where
M: ArchiveCodec,
impl<M> Debug for ArchiveEventSubscriber<M>where
M: ArchiveCodec,
Source§impl<M> Drop for ArchiveEventSubscriber<M>where
M: ArchiveCodec,
impl<M> Drop for ArchiveEventSubscriber<M>where
M: ArchiveCodec,
Auto Trait Implementations§
impl<M> Freeze for ArchiveEventSubscriber<M>
impl<M> RefUnwindSafe for ArchiveEventSubscriber<M>where
M: RefUnwindSafe,
impl<M> Send for ArchiveEventSubscriber<M>where
M: Send,
impl<M> Sync for ArchiveEventSubscriber<M>where
M: Sync,
impl<M> Unpin for ArchiveEventSubscriber<M>where
M: Unpin,
impl<M> UnwindSafe for ArchiveEventSubscriber<M>where
M: UnwindSafe,
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.