pub struct Consumer {
pub name: String,
pub queue: Queue,
pub count_popped: u32,
pub id: u32,
pub header: Header,
/* private fields */
}Fields§
§name: String§queue: Queue§count_popped: u32§id: u32§header: HeaderImplementations§
Source§impl Consumer
impl Consumer
pub fn new( base_path: &str, consumer_name: &str, queue_name: &str, ) -> Result<Consumer, ErrorQueue>
pub fn new_with_mode( base_path: &str, consumer_name: &str, queue_name: &str, mode: Mode, ) -> Result<Consumer, ErrorQueue>
pub fn get_batch_size(&mut self) -> u32
pub fn open(&mut self, is_new: bool) -> bool
pub fn get_info(&mut self) -> bool
pub fn pop_header(&mut self) -> bool
pub fn go_to_next_part(&mut self) -> bool
pub fn seek_next_pos(&mut self) -> bool
pub fn pop_body(&mut self, msg: &mut [u8]) -> Result<usize, ErrorQueue>
pub fn commit(&mut self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Consumer
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnsafeUnpin for Consumer
impl UnwindSafe for Consumer
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