pub struct QueueClient<'a> { /* private fields */ }Implementations§
Source§impl<'a> QueueClient<'a>
impl<'a> QueueClient<'a>
pub async fn create(&self, queue: &str) -> Result<QueryResult>
pub async fn push( &self, queue: &str, value: &JsonValue, options: QueuePushOptions, ) -> Result<QueryResult>
pub async fn peek(&self, queue: &str, limit: Option<u64>) -> Result<ListResult>
pub async fn pop(&self, queue: &str) -> Result<ListResult>
pub async fn len(&self, queue: &str) -> Result<u64>
pub async fn purge(&self, queue: &str) -> Result<DeleteResult>
Sourcepub async fn read_wait(
&self,
queue: &str,
consumer: &str,
wait: Duration,
opts: QueueReadWaitOptions<'_>,
) -> Result<ListResult>
pub async fn read_wait( &self, queue: &str, consumer: &str, wait: Duration, opts: QueueReadWaitOptions<'_>, ) -> Result<ListResult>
QUEUE READ … WAIT <wait> — block until a message is available
for consumer on queue (optionally scoped to group), the
wait budget elapses, or the server cancels.
Timeout returns an empty ListResult — the same shape an empty
non-waiting read would produce — never an error. Cancellation
and cap rejection surface as ClientErrors from the underlying
transport (PRD #718 slice C). wait must be specified — there
is no infinite-wait default.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for QueueClient<'a>
impl<'a> !UnwindSafe for QueueClient<'a>
impl<'a> Freeze for QueueClient<'a>
impl<'a> Send for QueueClient<'a>
impl<'a> Sync for QueueClient<'a>
impl<'a> Unpin for QueueClient<'a>
impl<'a> UnsafeUnpin for QueueClient<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request