Skip to main content

SignaledCallback

Struct SignaledCallback 

Source
#[repr(C)]
pub struct SignaledCallback<'a> { pub cb_id: &'a str, pub ctx_ptr: *mut c_void, }
Expand description

Layer-clean substitute for nros::node_metadata::CallbackId + nros::node::CallbackCtx at the NodeDispatchRuntime boundary (Phase 216.A.2). nros-platform sits below nros in the dep graph, so the trait surface cannot reference those types directly. The nros-side runtime impl wraps a real (CallbackId, &mut CallbackCtx) pair into this opaque shape before invoking NodeDispatchRuntime::signal_callback; the concrete dispatcher casts ctx_ptr back to &mut nros::CallbackCtx<'_> at the call site.

#[repr(C)] keeps the layout stable across the (same-language today, FFI-shaped tomorrow) nros-platformnros boundary.

Fields§

§cb_id: &'a str

Stable identifier string carried by nros::CallbackId(&'a str).

§ctx_ptr: *mut c_void

Erased pointer to the nros::CallbackCtx<'_> the dispatcher will drive. The nros-side NodeDispatchRuntime impl casts back to &mut nros::CallbackCtx<'_> before invoking the component body.

Auto Trait Implementations§

§

impl<'a> Freeze for SignaledCallback<'a>

§

impl<'a> RefUnwindSafe for SignaledCallback<'a>

§

impl<'a> !Send for SignaledCallback<'a>

§

impl<'a> !Sync for SignaledCallback<'a>

§

impl<'a> Unpin for SignaledCallback<'a>

§

impl<'a> UnsafeUnpin for SignaledCallback<'a>

§

impl<'a> UnwindSafe for SignaledCallback<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.