pub struct Orb { /* private fields */ }Expand description
Native Orb declarations compile with the application and dispatch typed Rust callbacks.
Implementations§
Source§impl Orb
impl Orb
Sourcepub fn new(name: impl Into<String>, api_version: u32) -> Self
pub fn new(name: impl Into<String>, api_version: u32) -> Self
Create a native declaration with explicit identity and default options.
Sourcepub fn declaration(&self) -> &Orb
pub fn declaration(&self) -> &Orb
Inspect this Orb’s declared services, signatures and requirements without installing it or running factories. Executable callbacks remain private.
Sourcepub fn requires(self, requirement: Requirement) -> Self
pub fn requires(self, requirement: Requirement) -> Self
Add an explicit versioned orb dependency.
Auto Trait Implementations§
impl !RefUnwindSafe for Orb
impl !Send for Orb
impl !Sync for Orb
impl !UnwindSafe for Orb
impl Forget for Orb
impl Freeze for Orbwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Service>: Freeze,
PhantomData<Requirement>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
*const RcInner<dyn Fn(Declaration) -> Result<Rc<dyn Any>, Error>> is !null: Freeze,
PhantomData<RcInner<dyn Fn(Declaration) -> Result<Rc<dyn Any>, Error>>>: Freeze,
*const LeafNode<String, Implementation> is !null: Freeze,
PhantomData<Box<(String, Implementation)>>: Freeze,
impl Move for Orb
impl Unpin for Orbwhere
*const u8 is !null: Unpin,
*const LeafNode<String, SetValZST> is !null: Unpin,
Box<(String, SetValZST)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
*const LeafNode<String, BTreeSet<String>> is !null: Unpin,
Box<(String, BTreeSet<String>)>: Unpin,
Rc<dyn Fn(Declaration) -> Result<Rc<dyn Any>, Error>>: Unpin,
*const LeafNode<String, Implementation> is !null: Unpin,
Box<(String, Implementation)>: Unpin,
impl UnsafeUnpin for Orbwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Service>: UnsafeUnpin,
PhantomData<Requirement>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const RcInner<dyn Fn(Declaration) -> Result<Rc<dyn Any>, Error>> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(Declaration) -> Result<Rc<dyn Any>, Error>>>: UnsafeUnpin,
*const LeafNode<String, Implementation> is !null: UnsafeUnpin,
PhantomData<Box<(String, Implementation)>>: UnsafeUnpin,
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