[][src]Struct weld::runtime::WeldRuntimeContext

pub struct WeldRuntimeContext { /* fields omitted */ }

Maintains information about a single Weld run.

Methods

impl WeldRuntimeContext[src]

pub fn new(nworkers: i32, memlimit: i64) -> WeldRuntimeContext[src]

Construct a new WeldRuntimeContext.

pub unsafe fn free(&mut self, pointer: Ptr)[src]

Free an allocated data value.

Panics if the passed value was not allocated by the Weld runtime.

pub fn memory_usage(&self) -> i64[src]

Returns the number of bytes allocated by this Weld run.

pub fn run_id(&self) -> i64[src]

Returns a 64-bit ID identifying this run.

pub fn threads(&self) -> i32[src]

Returns the number of worker threads set for this run.

pub fn memory_limit(&self) -> i64[src]

Returns the memory limit of this run.

Trait Implementations

impl Debug for WeldRuntimeContext[src]

impl Drop for WeldRuntimeContext[src]

impl PartialEq<WeldRuntimeContext> for WeldRuntimeContext[src]

impl StructuralPartialEq for WeldRuntimeContext[src]

Auto Trait Implementations

impl RefUnwindSafe for WeldRuntimeContext

impl !Send for WeldRuntimeContext

impl !Sync for WeldRuntimeContext

impl Unpin for WeldRuntimeContext

impl UnwindSafe for WeldRuntimeContext

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.