pub struct SubscribeSubject<M>where
M: TypedMessage,{ /* private fields */ }
Expand description
Wraps a NATS subject string with some type information about the message type expected on that subject, as well as the reply type (which may be NoReply).
Implementations§
Source§impl<M> SubscribeSubject<M>where
M: TypedMessage,
impl<M> SubscribeSubject<M>where
M: TypedMessage,
pub fn new(subject: String) -> SubscribeSubject<M>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for SubscribeSubject<M>
impl<M> RefUnwindSafe for SubscribeSubject<M>where
M: RefUnwindSafe,
impl<M> Send for SubscribeSubject<M>where
M: Send,
impl<M> Sync for SubscribeSubject<M>where
M: Sync,
impl<M> Unpin for SubscribeSubject<M>where
M: Unpin,
impl<M> UnwindSafe for SubscribeSubject<M>where
M: UnwindSafe,
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