pub struct PubSubClient { /* private fields */ }
Implementations§
Source§impl PubSubClient
impl PubSubClient
pub async fn publish<M, E>( &self, topic_id: &str, envelopes: Vec<E>, ordering_key: Option<&str>, timeout: Option<Duration>, ) -> Result<Vec<String>, Error>
pub async fn publish_raw( &self, topic_id: &str, messages: Vec<RawPublishedMessage<'_>>, timeout: Option<Duration>, ) -> Result<Vec<String>, Error>
Source§impl PubSubClient
impl PubSubClient
pub async fn pull<M>(
&self,
subscription_id: &str,
max_messages: u32,
timeout: Option<Duration>,
) -> Result<Vec<PulledMessage<M>>, Error>where
M: DeserializeOwned + Debug,
pub async fn pull_with_transform<M, T>( &self, subscription_id: &str, max_messages: u32, timeout: Option<Duration>, transform: T, ) -> Result<Vec<PulledMessage<M>>, Error>
pub async fn pull_raw( &self, subscription_id: &str, max_messages: u32, timeout: Option<Duration>, ) -> Result<Vec<RawPulledMessageEnvelope>, Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PubSubClient
impl !RefUnwindSafe for PubSubClient
impl Send for PubSubClient
impl Sync for PubSubClient
impl Unpin for PubSubClient
impl !UnwindSafe for PubSubClient
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