pub struct PushConsumer<T, C: CodecType> { /* private fields */ }Expand description
A typed push consumer with configurable codec.
§Type Parameters
T- The message typeC- The codec type used for deserialization
Implementations§
Source§impl<T, C: CodecType> PushConsumer<T, C>
impl<T, C: CodecType> PushConsumer<T, C>
Source§impl<T: DeserializeOwned, C: CodecType> PushConsumer<T, C>
impl<T: DeserializeOwned, C: CodecType> PushConsumer<T, C>
Sourcepub async fn messages(&self) -> Result<PushMessages<T, C>>
pub async fn messages(&self) -> Result<PushMessages<T, C>>
Get a message stream from this push consumer.
Auto Trait Implementations§
impl<T, C> Freeze for PushConsumer<T, C>
impl<T, C> !RefUnwindSafe for PushConsumer<T, C>
impl<T, C> Send for PushConsumer<T, C>where
T: Send,
impl<T, C> Sync for PushConsumer<T, C>where
T: Sync,
impl<T, C> Unpin for PushConsumer<T, C>
impl<T, C> !UnwindSafe for PushConsumer<T, 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