pub struct InternalRpcPluginBuilder { /* private fields */ }Implementations§
Source§impl InternalRpcPluginBuilder
impl InternalRpcPluginBuilder
pub fn new(metadata: PluginMetadata) -> Self
pub fn with_capabilities(self, capabilities: Vec<String>) -> Self
pub fn with_manifest(self, manifest: PluginManifest) -> Self
pub fn with_startup_policy(self, startup_policy: PluginStartupPolicy) -> Self
pub fn with_operation_router(self, router: ToolRouter) -> Self
pub fn with_health<F>(self, handler: F) -> Self
pub fn rpc_method<F>(self, method: impl Into<String>, handler: F) -> Selfwhere
F: for<'a, 'ctx> Fn(RpcRequest, &'a mut PluginContext<'ctx>) -> Pin<Box<dyn Future<Output = PluginRpcResult> + Send + 'a>> + Send + Sync + 'static,
pub fn build(self) -> InternalRpcPlugin
Auto Trait Implementations§
impl !RefUnwindSafe for InternalRpcPluginBuilder
impl !UnwindSafe for InternalRpcPluginBuilder
impl Freeze for InternalRpcPluginBuilder
impl Send for InternalRpcPluginBuilder
impl Sync for InternalRpcPluginBuilder
impl Unpin for InternalRpcPluginBuilder
impl UnsafeUnpin for InternalRpcPluginBuilder
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