pub struct OpRegistration {
pub domain: &'static str,
pub op_type: &'static str,
pub invoke: fn(&NodeProto, &[(&str, &(dyn SlotValue + 'static))], &mut RuntimeResourceRef<'_>) -> Result<DispatchResult, OpError>,
pub kind: RegistrationKind,
}Expand description
Single inventory entry covering every op the framework
dispatches. Library makers ship via bb::register_op!; bb-ops’s
syscalls submit directly. Engine dispatch keys on
(domain, op_type) — no TypeId lookup.
Fields§
§domain: &'static strOp’s (domain, op_type) key.
op_type: &'static strOp type name.
invoke: fn(&NodeProto, &[(&str, &(dyn SlotValue + 'static))], &mut RuntimeResourceRef<'_>) -> Result<DispatchResult, OpError>Dispatch entry point.
kind: RegistrationKindDiscriminator selecting which iterator surface returns this entry.
Trait Implementations§
impl Collect for OpRegistration
Auto Trait Implementations§
impl Freeze for OpRegistration
impl RefUnwindSafe for OpRegistration
impl Send for OpRegistration
impl Sync for OpRegistration
impl Unpin for OpRegistration
impl UnsafeUnpin for OpRegistration
impl UnwindSafe for OpRegistration
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