pub struct KernelContext<'ctx> { /* private fields */ }Implementations§
Source§impl<'ctx> KernelContext<'ctx>
impl<'ctx> KernelContext<'ctx>
pub fn get<T: FromKernelContext<'ctx>>( &self, name: impl AsRef<str>, ) -> Option<T>
pub fn inputs(&self) -> Result<Vec<Outlet>>
pub fn outputs(&self) -> Result<Vec<Outlet>>
pub fn constant_input<T: DowncastableTarget>( &self, idx: usize, ) -> Result<ValueRef<'ctx, T>>
pub fn node_name(&self) -> Result<String>
pub fn allocator(&self, mem_type: MemoryType) -> Result<Allocator>
Available on crate feature
api-18 only.pub fn logger(&self) -> Result<Logger<'ctx>>
Trait Implementations§
Source§impl AsPointer for KernelContext<'_>
impl AsPointer for KernelContext<'_>
Source§impl Clone for KernelContext<'_>
impl Clone for KernelContext<'_>
Source§impl Drop for KernelContext<'_>
impl Drop for KernelContext<'_>
Auto Trait Implementations§
impl<'ctx> !Send for KernelContext<'ctx>
impl<'ctx> !Sync for KernelContext<'ctx>
impl<'ctx> Freeze for KernelContext<'ctx>
impl<'ctx> RefUnwindSafe for KernelContext<'ctx>
impl<'ctx> Unpin for KernelContext<'ctx>
impl<'ctx> UnsafeUnpin for KernelContext<'ctx>
impl<'ctx> UnwindSafe for KernelContext<'ctx>
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