pub struct TypedMpscProducer<C> { /* private fields */ }Expand description
Typed MPSC producer that publishes v1-framed messages using codec C.
Implementations§
Source§impl<C> TypedMpscProducer<C>
impl<C> TypedMpscProducer<C>
Source§impl<C> TypedMpscProducer<C>
impl<C> TypedMpscProducer<C>
Sourcepub fn publish<T>(&self, meta: MsgMeta, value: &T) -> Result<(), Error>where
C: CodecId + EncodeInto<T>,
pub fn publish<T>(&self, meta: MsgMeta, value: &T) -> Result<(), Error>where
C: CodecId + EncodeInto<T>,
Publish value with the provided message identity.
See TypedSpscSender::publish for error semantics.
Sourcepub fn publish_msg<T>(&self, value: &T) -> Result<(), Error>where
T: IndexbusMsgSpec,
C: CodecId + EncodeInto<T>,
pub fn publish_msg<T>(&self, value: &T) -> Result<(), Error>where
T: IndexbusMsgSpec,
C: CodecId + EncodeInto<T>,
Publish a typed message using compile-time identity (T::META).
Auto Trait Implementations§
impl<C> Freeze for TypedMpscProducer<C>where
C: Freeze,
impl<C> !RefUnwindSafe for TypedMpscProducer<C>
impl<C> Send for TypedMpscProducer<C>where
C: Send,
impl<C> Sync for TypedMpscProducer<C>where
C: Sync,
impl<C> Unpin for TypedMpscProducer<C>where
C: Unpin,
impl<C> !UnwindSafe for TypedMpscProducer<C>
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