pub enum NativeBindingResources {
Instructions(Arc<NativeInstructionResources>),
Hooks(Box<NativeHookResources>),
}Expand description
Kept distinct from the instruction-only type: only the Hooks variant can stage/load code, and that requires an independently approved private profile.
Variants§
Instructions(Arc<NativeInstructionResources>)
Hooks(Box<NativeHookResources>)
Implementations§
Source§impl NativeBindingResources
impl NativeBindingResources
pub fn freeze( selection: ResourceSelection, hooks: Option<NativeHookConfig>, ) -> BackendResult<Self>
pub fn identity(&self) -> &str
Auto Trait Implementations§
impl Forget for NativeBindingResources
impl Freeze for NativeBindingResourceswhere
*const ArcInner<NativeInstructionResources> is !null: Freeze,
PhantomData<ArcInner<NativeInstructionResources>>: Freeze,
*const NativeHookResources is !null: Freeze,
PhantomData<NativeHookResources>: Freeze,
impl Move for NativeBindingResources
impl RefUnwindSafe for NativeBindingResources
impl Send for NativeBindingResources
impl Sync for NativeBindingResources
impl Unpin for NativeBindingResources
impl UnsafeUnpin for NativeBindingResourceswhere
*const ArcInner<NativeInstructionResources> is !null: UnsafeUnpin,
PhantomData<ArcInner<NativeInstructionResources>>: UnsafeUnpin,
*const NativeHookResources is !null: UnsafeUnpin,
PhantomData<NativeHookResources>: UnsafeUnpin,
impl UnwindSafe for NativeBindingResources
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