pub struct ErasedClientPlugin { /* private fields */ }Expand description
A type-erased client plugin and worker-plugin propagation data.
The worker data is intentionally opaque to avoid taking a dependency on temporalio-sdk.
Experimental: This API may change or be removed.
Implementations§
Source§impl ErasedClientPlugin
impl ErasedClientPlugin
Sourcepub fn new<P: ClientPlugin>(plugin: P) -> Self
pub fn new<P: ClientPlugin>(plugin: P) -> Self
Type-erase a client plugin for registration on ClientOptions.
Sourcepub fn with_worker_plugin<T: WorkerPluginData>(self, plugin: T) -> Self
pub fn with_worker_plugin<T: WorkerPluginData>(self, plugin: T) -> Self
Attach opaque worker-plugin propagation data.
This is intended for SDK integrations that define their own worker plugin trait. Values with types unknown to an SDK are ignored.
Sourcepub fn worker_plugins(&self) -> impl Iterator<Item = &dyn WorkerPluginData>
pub fn worker_plugins(&self) -> impl Iterator<Item = &dyn WorkerPluginData>
Iterate over opaque worker-plugin propagation data.
This is intended for SDK integrations that recognize their own private registration type.
Trait Implementations§
Source§impl Clone for ErasedClientPlugin
impl Clone for ErasedClientPlugin
Source§fn clone(&self) -> ErasedClientPlugin
fn clone(&self) -> ErasedClientPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ErasedClientPlugin
impl !UnwindSafe for ErasedClientPlugin
impl Freeze for ErasedClientPlugin
impl Send for ErasedClientPlugin
impl Sync for ErasedClientPlugin
impl Unpin for ErasedClientPlugin
impl UnsafeUnpin for ErasedClientPlugin
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request