pub struct OperatorRegistry { /* private fields */ }Expand description
Clean registry API for fundamental operators
Implementations§
Source§impl OperatorRegistry
impl OperatorRegistry
Sourcepub async fn new() -> Result<Self, HlxError>
pub async fn new() -> Result<Self, HlxError>
Create a new registry with an empty context (default values)
Sourcepub async fn new_with_context(
context: ExecutionContext,
) -> Result<Self, HlxError>
pub async fn new_with_context( context: ExecutionContext, ) -> Result<Self, HlxError>
Create a new registry with the provided execution context
Sourcepub async fn execute(&self, op: &str, params: &str) -> Result<Value, HlxError>
pub async fn execute(&self, op: &str, params: &str) -> Result<Value, HlxError>
Execute an operator with the given parameters
Sourcepub fn context(&self) -> &Arc<ExecutionContext>
pub fn context(&self) -> &Arc<ExecutionContext>
Get access to the underlying context for inspection/modification
Auto Trait Implementations§
impl Freeze for OperatorRegistry
impl RefUnwindSafe for OperatorRegistry
impl Send for OperatorRegistry
impl Sync for OperatorRegistry
impl Unpin for OperatorRegistry
impl UnwindSafe for OperatorRegistry
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more