pub struct Read<'a> {
pub group: &'a [u8],
pub consumer: &'a [u8],
pub from: From,
pub count: Option<usize>,
pub noack: bool,
}Expand description
Everything XREADGROUP takes past the key.
A struct for the same reason Claim is one, and because the wire parses
GROUP g c, COUNT n and NOACK in any order and would otherwise be
carrying five loose values from the parse to the call.
Fields§
§group: &'a [u8]Which group is reading.
consumer: &'a [u8]Which consumer inside it, created by turning up if it is new.
from: From> or an ID, which are two quite different commands wearing one name.
count: Option<usize>COUNT, or everything there is.
noack: boolNOACK, which hands the entries over without writing them down.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Read<'a>
impl<'a> RefUnwindSafe for Read<'a>
impl<'a> Send for Read<'a>
impl<'a> Sync for Read<'a>
impl<'a> Unpin for Read<'a>
impl<'a> UnsafeUnpin for Read<'a>
impl<'a> UnwindSafe for Read<'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