Skip to main content

PluginInfoClient

Struct PluginInfoClient 

Source
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,

Source§

fn capacity(&self) -> usize

Returns the current capacity of the channel for sending requests to the server. Read more
Source§

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

Returns whether the server has been dropped or the connection to it has been lost.
Source§

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)

Sets the maximum allowed size of a request in bytes. Read more
Source§

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)

Sets the maximum allowed size of a reply in bytes.
Source§

impl<Codec> Debug for PluginInfoClient<Codec>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

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>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<Codec> Drop for PluginInfoClient<Codec>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<Codec> PluginInfo for PluginInfoClient<Codec>
where Codec: Codec,

Source§

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>)>

Load all plugin stream and action configurations. Must error if config is invalid. Read more
Source§

async fn start(&mut self) -> RemoteResult<()>

Notify the plugin that setup is finished, permitting a last occasion to report an error that’ll make reaction exit. All initialization (opening remote connections, starting streams, etc) should happen here. Read more
Source§

async fn close(self) -> RemoteResult<()>

Notify the plugin that reaction is quitting and that the plugin should quit too. A few seconds later, the plugin will receive SIGTERM. A few seconds later, the plugin will receive SIGKILL. Read more
Source§

impl<Codec> Serialize for PluginInfoClient<Codec>
where Codec: Codec,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. 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>
where Codec: Sync + Send,

§

impl<Codec> Unpin for PluginInfoClient<Codec>
where Codec: Unpin,

§

impl<Codec> UnwindSafe for PluginInfoClient<Codec>
where Codec: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> RemoteSend for T
where T: Send + Serialize + DeserializeOwned + 'static,