pub struct SourceJsonCodec;Trait Implementations§
Source§impl Debug for SourceJsonCodec
impl Debug for SourceJsonCodec
Source§impl Default for SourceJsonCodec
impl Default for SourceJsonCodec
Source§impl JsonCapabilityCodec for SourceJsonCodec
impl JsonCapabilityCodec for SourceJsonCodec
Source§fn capability_id(&self) -> &'static str
fn capability_id(&self) -> &'static str
Stable Capability series identity.
Source§fn descriptor_version(&self) -> &'static str
fn descriptor_version(&self) -> &'static str
Exact Descriptor version.
Source§fn descriptor_digest(&self) -> &'static str
fn descriptor_digest(&self) -> &'static str
Canonical digest of the exact generated Descriptor. Read more
Source§fn request_operations(&self) -> &'static [&'static str]
fn request_operations(&self) -> &'static [&'static str]
Exact request Operation table.
Source§fn stream_operations(&self) -> &'static [&'static str]
fn stream_operations(&self) -> &'static [&'static str]
Exact bidirectional stream Operation table.
Source§fn event_operations(&self) -> &'static [&'static str]
fn event_operations(&self) -> &'static [&'static str]
Exact ephemeral Event Operation table.
Source§fn encode_request(
&self,
operation: &str,
request: &dyn Any,
) -> Result<Value, RuntimeFailure>
fn encode_request( &self, operation: &str, request: &dyn Any, ) -> Result<Value, RuntimeFailure>
Converts one generated request into validated portable JSON.
Source§fn decode_response(
&self,
operation: &str,
value: Value,
) -> Result<Box<dyn Any>, RuntimeFailure>
fn decode_response( &self, operation: &str, value: Value, ) -> Result<Box<dyn Any>, RuntimeFailure>
Converts portable JSON into the generated response value.
Source§fn decode_domain_error(
&self,
operation: &str,
value: Value,
) -> Result<Box<dyn Any>, RuntimeFailure>
fn decode_domain_error( &self, operation: &str, value: Value, ) -> Result<Box<dyn Any>, RuntimeFailure>
Converts portable JSON into the generated Domain Error value.
Source§fn encode_stream_open(
&self,
operation: &str,
_request: &dyn Any,
) -> Result<Value, RuntimeFailure>
fn encode_stream_open( &self, operation: &str, _request: &dyn Any, ) -> Result<Value, RuntimeFailure>
Converts one generated stream-open request into validated portable JSON.
Source§fn encode_stream_message(
&self,
operation: &str,
_message: &dyn Any,
) -> Result<Value, RuntimeFailure>
fn encode_stream_message( &self, operation: &str, _message: &dyn Any, ) -> Result<Value, RuntimeFailure>
Converts one generated outbound stream message into validated portable JSON.
Source§fn decode_stream_message(
&self,
operation: &str,
_value: Value,
) -> Result<Box<dyn Any>, RuntimeFailure>
fn decode_stream_message( &self, operation: &str, _value: Value, ) -> Result<Box<dyn Any>, RuntimeFailure>
Converts one portable JSON stream message into its generated value.
Source§fn decode_stream_domain_error(
&self,
operation: &str,
_value: Value,
) -> Result<Box<dyn Any>, RuntimeFailure>
fn decode_stream_domain_error( &self, operation: &str, _value: Value, ) -> Result<Box<dyn Any>, RuntimeFailure>
Converts one portable JSON stream terminal error into its generated value.
Source§fn encode_event(
&self,
operation: &str,
_event: &dyn Any,
) -> Result<Value, RuntimeFailure>
fn encode_event( &self, operation: &str, _event: &dyn Any, ) -> Result<Value, RuntimeFailure>
Converts one generated Event value into validated portable JSON.
Source§fn invoke_host_request(
&self,
dependency: PluginDependencyHandle,
operation: String,
request: Value,
context: InvocationContext,
) -> JsonHostRequestFuture
fn invoke_host_request( &self, dependency: PluginDependencyHandle, operation: String, request: Value, context: InvocationContext, ) -> JsonHostRequestFuture
Invokes one exact Plan-bound host Request dependency from portable JSON.
Source§fn open_host_stream(
&self,
_dependency: PluginStreamDependencyHandle,
operation: String,
_request: Value,
_context: InvocationContext,
) -> JsonHostStreamOpenFuture
fn open_host_stream( &self, _dependency: PluginStreamDependencyHandle, operation: String, _request: Value, _context: InvocationContext, ) -> JsonHostStreamOpenFuture
Opens one exact Plan-bound host Stream dependency from portable JSON.
Source§fn publish_host_event(
&self,
_dependency: PluginEventDependencyHandle,
operation: String,
_event: Value,
_context: InvocationContext,
) -> LocalBoxFuture<'static, Result<(), RuntimeFailure>>
fn publish_host_event( &self, _dependency: PluginEventDependencyHandle, operation: String, _event: Value, _context: InvocationContext, ) -> LocalBoxFuture<'static, Result<(), RuntimeFailure>>
Publishes one exact Plan-bound host Event dependency from portable JSON.
Auto Trait Implementations§
impl Freeze for SourceJsonCodec
impl RefUnwindSafe for SourceJsonCodec
impl Send for SourceJsonCodec
impl Sync for SourceJsonCodec
impl Unpin for SourceJsonCodec
impl UnsafeUnpin for SourceJsonCodec
impl UnwindSafe for SourceJsonCodec
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> Plugin for T
impl<T> Plugin for T
Source§fn create(_context: CreateContext) -> Result<T, String>
fn create(_context: CreateContext) -> Result<T, String>
Constructs the complete object. Dependency calls use
context.ctx().Source§const CONFIGURATION_SCHEMA: Option<&'static str> = None
const CONFIGURATION_SCHEMA: Option<&'static str> = None
Portable JSON Schema for this Plugin’s configuration, when it accepts configuration.
Source§fn requirements() -> &'static [Requirement]
fn requirements() -> &'static [Requirement]
Source-declared named dependencies required by this object.