pub struct FetchParams<'a> {
pub group: &'a str,
pub consumer: &'a str,
pub typ: FetchType,
pub count: usize,
pub timeout: Option<Duration>,
}
Expand description
Parameters for fetch request.
Fields§
§group: &'a str
Group name.
This is used as identifier of group of pending messages.
When message is successfully read, it is moved inside this group.
At any point user can XACK
to confirm message is consumed and delete it.
Otherwise fetch it again (in case of crash or something similar)
consumer: &'a str
Consumer name
Used to identifier client reading messages If message is successfully read from Queue, then message is moved to pending list, belonging to this consumer.
From now on, this message can be accessed only by this consumer.
typ: FetchType
Fetch type
count: usize
Number of messages to fetch maximum.
If 0, fetches all available
timeout: Option<Duration>
Requests to block for specified duration in milliseconds.
Auto Trait Implementations§
impl<'a> Freeze for FetchParams<'a>
impl<'a> RefUnwindSafe for FetchParams<'a>
impl<'a> Send for FetchParams<'a>
impl<'a> Sync for FetchParams<'a>
impl<'a> Unpin for FetchParams<'a>
impl<'a> UnwindSafe for FetchParams<'a>
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