pub struct OperatorContext { /* private fields */ }Expand description
Operator context providing access to state and other resources
Implementations§
Source§impl OperatorContext
impl OperatorContext
Sourcepub fn new(ctx: *mut FFIContext) -> Self
pub fn new(ctx: *mut FFIContext) -> Self
Create a new operator context from an FFI context pointer
§Safety
The caller must ensure ctx is non-null and valid for the lifetime of this context
Sourcepub fn operator_id(&self) -> FlowNodeId
pub fn operator_id(&self) -> FlowNodeId
Get the operator ID from the FFI context
Auto Trait Implementations§
impl Freeze for OperatorContext
impl RefUnwindSafe for OperatorContext
impl !Send for OperatorContext
impl !Sync for OperatorContext
impl Unpin for OperatorContext
impl UnwindSafe for OperatorContext
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