pub enum PluginRequest {
Init(InitParams),
IsAvailable,
Get(GetParams),
List,
Validate(ValidateParams),
}Expand description
One request the host sends. Tagged by method for clean
JSON-RPC 2.0 framing and so a future method addition can be
added as a new variant without touching dispatch.
Variants§
Init(InitParams)
First call after spawn. Hands the plugin its name +
per-instance config (the [[source]] block from
sources.toml) and receives the plugin’s name +
capability bitset back.
IsAvailable
Probe — returns the plugin’s current readiness.
Get(GetParams)
Fetch the value at reference. Plugin returns
GetResult or an error.
List
Enumerate the plugin’s inventory.
Validate(ValidateParams)
Confirm a reference is well-formed without round-trip.
Trait Implementations§
Source§impl Clone for PluginRequest
impl Clone for PluginRequest
Source§fn clone(&self) -> PluginRequest
fn clone(&self) -> PluginRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginRequest
impl Debug for PluginRequest
Source§impl<'de> Deserialize<'de> for PluginRequest
impl<'de> Deserialize<'de> for PluginRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PluginRequest
impl PartialEq for PluginRequest
Source§fn eq(&self, other: &PluginRequest) -> bool
fn eq(&self, other: &PluginRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PluginRequest
impl Serialize for PluginRequest
impl Eq for PluginRequest
impl StructuralPartialEq for PluginRequest
Auto Trait Implementations§
impl Freeze for PluginRequest
impl RefUnwindSafe for PluginRequest
impl Send for PluginRequest
impl Sync for PluginRequest
impl Unpin for PluginRequest
impl UnsafeUnpin for PluginRequest
impl UnwindSafe for PluginRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.