pub struct PluginInfoClient<Codec = Default> { /* private fields */ }Expand description
Remote client for PluginInfo.
Can be sent to a remote endpoint. The only trait that must be implemented by a plugin. It provides lists of stream, filter and action types implemented by a dynamic plugin.
Trait Implementations§
Source§impl<Codec> Client for PluginInfoClient<Codec>where
Codec: Codec,
impl<Codec> Client for PluginInfoClient<Codec>where
Codec: Codec,
Source§fn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the current capacity of the channel for sending requests to
the server. Read more
Source§fn closed(&self) -> Closed
fn closed(&self) -> Closed
Returns a future that completes when the server or client has been
dropped or the connection between them has been lost. Read more
Source§fn is_closed(&self) -> bool
fn is_closed(&self) -> bool
Returns whether the server has been dropped or the connection to it
has been lost.
Source§fn max_request_size(&self) -> usize
fn max_request_size(&self) -> usize
The maximum allowed size of a request in bytes.
Source§fn set_max_request_size(&mut self, max_request_size: usize)
fn set_max_request_size(&mut self, max_request_size: usize)
Sets the maximum allowed size of a request in bytes. Read more
Source§fn max_reply_size(&self) -> usize
fn max_reply_size(&self) -> usize
The maximum allowed size of a reply in bytes.
Source§fn set_max_reply_size(&mut self, max_reply_size: usize)
fn set_max_reply_size(&mut self, max_reply_size: usize)
Sets the maximum allowed size of a reply in bytes.
Source§impl<Codec> Debug for PluginInfoClient<Codec>
impl<Codec> Debug for PluginInfoClient<Codec>
Source§impl<'de, Codec> Deserialize<'de> for PluginInfoClient<Codec>where
Codec: Codec,
impl<'de, Codec> Deserialize<'de> for PluginInfoClient<Codec>where
Codec: Codec,
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<Codec> Drop for PluginInfoClient<Codec>
impl<Codec> Drop for PluginInfoClient<Codec>
Source§impl<Codec> PluginInfo for PluginInfoClient<Codec>where
Codec: Codec,
impl<Codec> PluginInfo for PluginInfoClient<Codec>where
Codec: Codec,
Source§async fn manifest(&mut self) -> Result<Manifest, CallError>
async fn manifest(&mut self) -> Result<Manifest, CallError>
Return the manifest of the plugin.
This should not be dynamic, and return always the same manifest. Read more
Source§async fn load_config(
&mut self,
streams: Vec<StreamConfig>,
actions: Vec<ActionConfig>,
) -> RemoteResult<(Vec<StreamImpl>, Vec<ActionImpl>)>
async fn load_config( &mut self, streams: Vec<StreamConfig>, actions: Vec<ActionConfig>, ) -> RemoteResult<(Vec<StreamImpl>, Vec<ActionImpl>)>
Load all plugin stream and action configurations.
Must error if config is invalid. Read more
Auto Trait Implementations§
impl<Codec> Freeze for PluginInfoClient<Codec>
impl<Codec> RefUnwindSafe for PluginInfoClient<Codec>where
Codec: RefUnwindSafe,
impl<Codec> Send for PluginInfoClient<Codec>where
Codec: Send,
impl<Codec> Sync for PluginInfoClient<Codec>
impl<Codec> Unpin for PluginInfoClient<Codec>where
Codec: Unpin,
impl<Codec> UnwindSafe for PluginInfoClient<Codec>where
Codec: UnwindSafe,
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