pub struct LuaToolFactory {
descriptor: ToolImplementationDescriptor,
manifest: LuaToolManifest,
script_source: String,
config: Arc<Config>,
}Fields§
§descriptor: ToolImplementationDescriptor§manifest: LuaToolManifest§script_source: String§config: Arc<Config>Implementations§
Source§impl LuaToolFactory
impl LuaToolFactory
pub fn from_manifest( manifest: LuaToolManifest, config: Arc<Config>, ) -> Result<Self>
Trait Implementations§
Source§impl ToolImplementationFactory for LuaToolFactory
impl ToolImplementationFactory for LuaToolFactory
fn descriptor(&self) -> &ToolImplementationDescriptor
fn bind<'life0, 'async_trait>(
&'life0 self,
request: ToolBindingRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Tool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn validate_binding(&self, _resource: &ToolBindingResource) -> Result<()>
fn validate_binding(&self, _resource: &ToolBindingResource) -> Result<()>
Implementation-specific checks that require no execution or secret access.
Auto Trait Implementations§
impl Freeze for LuaToolFactory
impl RefUnwindSafe for LuaToolFactory
impl Send for LuaToolFactory
impl Sync for LuaToolFactory
impl Unpin for LuaToolFactory
impl UnsafeUnpin for LuaToolFactory
impl UnwindSafe for LuaToolFactory
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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