pub struct ShuttleExtension { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Extension for ShuttleExtension
impl Extension for ShuttleExtension
Source§fn handle_rpc<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle_rpc<'life0, 'life1, 'async_trait>(
&'life0 self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Handle an RPC method call. Read more
Source§fn on_config<'life0, 'async_trait>(
&'life0 self,
config: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn on_config<'life0, 'async_trait>(
&'life0 self,
config: HashMap<String, Value>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Called when the host delivers configuration values declared in the
manifest’s
[config] section. Extensions should store these for use
during tool execution. Read moreSource§fn handle_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
_method: &'life1 str,
_params: Value,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_notification<'life0, 'life1, 'async_trait>(
&'life0 self,
_method: &'life1 str,
_params: Value,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Handle a notification from the host. Default is no-op. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ShuttleExtension
impl !UnwindSafe for ShuttleExtension
impl Freeze for ShuttleExtension
impl Send for ShuttleExtension
impl Sync for ShuttleExtension
impl Unpin for ShuttleExtension
impl UnsafeUnpin for ShuttleExtension
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