Skip to main content

SourceJsonCodec

Struct SourceJsonCodec 

Source
pub struct SourceJsonCodec;

Trait Implementations§

Source§

impl Debug for SourceJsonCodec

Source§

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

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

impl Default for SourceJsonCodec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl JsonCapabilityCodec for SourceJsonCodec

Source§

fn capability_id(&self) -> &'static str

Stable Capability series identity.
Source§

fn descriptor_version(&self) -> &'static str

Exact Descriptor version.
Source§

fn descriptor_digest(&self) -> &'static str

Canonical digest of the exact generated Descriptor. Read more
Source§

fn request_operations(&self) -> &'static [&'static str]

Exact request Operation table.
Source§

fn stream_operations(&self) -> &'static [&'static str]

Exact bidirectional stream Operation table.
Source§

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>

Converts one generated request into validated portable JSON.
Source§

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>

Converts portable JSON into the generated Domain Error value.
Source§

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>

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>

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>

Converts one portable JSON stream terminal error into its generated value.
Source§

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

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

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

Publishes one exact Plan-bound host Event dependency from portable JSON.

Auto Trait Implementations§

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, 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> Plugin for T
where T: Default + Send + Sync + 'static,

Source§

fn create(_context: CreateContext) -> Result<T, String>

Constructs the complete object. Dependency calls use context.ctx().
Source§

const CONFIGURATION_SCHEMA: Option<&'static str> = None

Portable JSON Schema for this Plugin’s configuration, when it accepts configuration.
Source§

fn requirements() -> &'static [Requirement]

Source-declared named dependencies required by this object.
Source§

fn stop(&self, _context: Ctx) -> Result<(), String>

Attempts cleanup once after admitted work has drained.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.