pub struct ServiceTool;Expand description
systemd service management + journal reading.
Implementations§
Source§impl ServiceTool
impl ServiceTool
Trait Implementations§
Source§impl Default for ServiceTool
impl Default for ServiceTool
Source§impl Tool for ServiceTool
impl Tool for ServiceTool
fn name(&self) -> &str
fn description(&self) -> &str
fn parameters(&self) -> Value
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
ctx: &'life1 ToolContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ServiceTool
impl RefUnwindSafe for ServiceTool
impl Send for ServiceTool
impl Sync for ServiceTool
impl Unpin for ServiceTool
impl UnsafeUnpin for ServiceTool
impl UnwindSafe for ServiceTool
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