pub struct DwbaseComponent;Trait Implementations§
Source§impl Guest for DwbaseComponent
impl Guest for DwbaseComponent
Source§fn get_manifest() -> String
fn get_manifest() -> String
Returns a JSON manifest describing the component’s capabilities.
Source§fn on_start(_ctx: ExecCtx) -> Result<LifecycleStatus, String>
fn on_start(_ctx: ExecCtx) -> Result<LifecycleStatus, String>
Optional lifecycle hook when the component starts.
Source§fn on_stop(_ctx: ExecCtx, _reason: String) -> Result<LifecycleStatus, String>
fn on_stop(_ctx: ExecCtx, _reason: String) -> Result<LifecycleStatus, String>
Optional lifecycle hook when the component stops.
Source§fn invoke(_ctx: ExecCtx, op: String, input: String) -> InvokeResult
fn invoke(_ctx: ExecCtx, op: String, input: String) -> InvokeResult
Invokes an operation with execution context and JSON payload.
Source§fn invoke_stream(_ctx: ExecCtx, op: String, input: String) -> Vec<StreamEvent>
fn invoke_stream(_ctx: ExecCtx, op: String, input: String) -> Vec<StreamEvent>
Invokes an operation that emits a bounded list of streaming events.
Auto Trait Implementations§
impl Freeze for DwbaseComponent
impl RefUnwindSafe for DwbaseComponent
impl Send for DwbaseComponent
impl Sync for DwbaseComponent
impl Unpin for DwbaseComponent
impl UnwindSafe for DwbaseComponent
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