pub struct KernelInstance { /* private fields */ }Expand description
一个节点持有的算子实例。Drop 时回调 C 侧 destroy(RAII)。
Implementations§
Source§impl KernelInstance
impl KernelInstance
pub fn create(kernel_name: &str) -> Result<Self>
pub fn create_route(config: RouteConfig) -> Self
pub fn kernel_name(&self) -> &str
pub fn language(&self) -> KernelLanguage
Trait Implementations§
Source§impl Debug for KernelInstance
impl Debug for KernelInstance
Source§impl Drop for KernelInstance
impl Drop for KernelInstance
impl Send for KernelInstance
impl Sync for KernelInstance
Auto Trait Implementations§
impl !Freeze for KernelInstance
impl RefUnwindSafe for KernelInstance
impl Unpin for KernelInstance
impl UnsafeUnpin for KernelInstance
impl UnwindSafe for KernelInstance
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