Struct wasmcloud_core::wrpc::TransmitterWithHeaders
source · pub struct TransmitterWithHeaders { /* private fields */ }
Expand description
Wrapper around wrpc_transport_nats::Transmitter that includes a async_nats::HeaderMap for passing invocation and trace context.
Trait Implementations§
source§impl Clone for TransmitterWithHeaders
impl Clone for TransmitterWithHeaders
source§fn clone(&self) -> TransmitterWithHeaders
fn clone(&self) -> TransmitterWithHeaders
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransmitterWithHeaders
impl Debug for TransmitterWithHeaders
source§impl Transmitter for TransmitterWithHeaders
impl Transmitter for TransmitterWithHeaders
type Subject = Subject
type PublishError = PublishError
async fn transmit( &self, subject: Self::Subject, payload: Bytes ) -> Result<(), Self::PublishError>
fn transmit_static( &self, subject: Self::Subject, payload: impl Encode ) -> impl Future<Output = Result<(), Error>> + Send
fn transmit_tuple_dynamic<T>(
&self,
subject: Self::Subject,
values: T
) -> impl Future<Output = Result<(), Error>> + Sendwhere
T: IntoIterator<Item = Value> + Send,
<T as IntoIterator>::IntoIter: ExactSizeIterator<Item = Value> + Send,
fn transmit_async<'life0, 'async_trait>(
&'life0 self,
subject: Self::Subject,
value: AsyncValue
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for TransmitterWithHeaders
impl !RefUnwindSafe for TransmitterWithHeaders
impl Send for TransmitterWithHeaders
impl Sync for TransmitterWithHeaders
impl Unpin for TransmitterWithHeaders
impl !UnwindSafe for TransmitterWithHeaders
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