pub struct EndpointClient { /* private fields */ }Implementations§
Source§impl EndpointClient
impl EndpointClient
pub fn from_dependencies( dependencies: &PluginDependencies, ) -> Result<Self, RuntimeFailure>
pub async fn describe( &self, request: DescribeRequest, ) -> Result<DescribeResponse, EndpointDescribeInvocationError>
pub async fn describe_with_context( &self, context: InvocationContext, request: DescribeRequest, ) -> Result<DescribeResponse, EndpointDescribeInvocationError>
pub async fn handle( &self, request: HandleRequest, ) -> Result<HandleResponse, EndpointHandleInvocationError>
pub async fn handle_with_context( &self, context: InvocationContext, request: HandleRequest, ) -> Result<HandleResponse, EndpointHandleInvocationError>
Trait Implementations§
Source§impl CapabilityClient for EndpointClient
impl CapabilityClient for EndpointClient
Source§const CAPABILITY_ID: &'static str = CAPABILITY_ID
const CAPABILITY_ID: &'static str = CAPABILITY_ID
Stable Capability identity required by this client.
Source§const DESCRIPTOR_VERSION: &'static str = DESCRIPTOR_VERSION
const DESCRIPTOR_VERSION: &'static str = DESCRIPTOR_VERSION
Exact Descriptor version understood by this generated client.
Source§type Dependencies = PluginDependencies
type Dependencies = PluginDependencies
Adapter-owned dependency view used to connect this client.
Source§type Error = RuntimeFailure
type Error = RuntimeFailure
Adapter-owned failure returned when connection cannot complete.
Source§fn from_dependencies(
dependencies: &PluginDependencies,
) -> Result<Self, RuntimeFailure>
fn from_dependencies( dependencies: &PluginDependencies, ) -> Result<Self, RuntimeFailure>
Connects this client to one Plugin Instance’s resolved dependencies.
Source§fn already_connected() -> RuntimeFailure
fn already_connected() -> RuntimeFailure
Creates the adapter failure for an invalid second connection attempt.
Source§impl CapabilityClientMany for EndpointClient
impl CapabilityClientMany for EndpointClient
Source§fn many_from_dependencies(
dependencies: &PluginDependencies,
) -> Result<Vec<BoundCapabilityClient<Self>>, RuntimeFailure>
fn many_from_dependencies( dependencies: &PluginDependencies, ) -> Result<Vec<BoundCapabilityClient<Self>>, RuntimeFailure>
Connects one typed client per bound provider without performing discovery.
Auto Trait Implementations§
impl !RefUnwindSafe for EndpointClient
impl !Send for EndpointClient
impl !Sync for EndpointClient
impl !UnwindSafe for EndpointClient
impl Freeze for EndpointClient
impl Unpin for EndpointClient
impl UnsafeUnpin for EndpointClient
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