pub struct NativeGenerationContext { /* private fields */ }Expand description
Explicit Host-generation context passed only to admitted owner factories.
Implementations§
Source§impl NativeGenerationContext
impl NativeGenerationContext
pub fn resolve<T: NativeGenerationResource>( &self, owner: &str, reference: &str, configuration: &Value, create: impl FnOnce() -> Result<T, RuntimeFailure>, ) -> Result<NativeGenerationHandle<T>, RuntimeFailure>
Trait Implementations§
Source§impl Clone for NativeGenerationContext
impl Clone for NativeGenerationContext
Auto Trait Implementations§
impl !RefUnwindSafe for NativeGenerationContext
impl !Send for NativeGenerationContext
impl !Sync for NativeGenerationContext
impl !UnwindSafe for NativeGenerationContext
impl Freeze for NativeGenerationContext
impl Unpin for NativeGenerationContext
impl UnsafeUnpin for NativeGenerationContext
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