Struct v_queue::consumer::Consumer[][src]

pub struct Consumer {
    pub name: String,
    pub queue: Queue,
    pub count_popped: u32,
    pub id: u32,
    pub header: Header,
    // some fields omitted
}

Fields

name: Stringqueue: Queuecount_popped: u32id: u32header: Header

Implementations

impl Consumer[src]

pub fn new(
    base_path: &str,
    consumer_name: &str,
    queue_name: &str
) -> Result<Consumer, ErrorQueue>
[src]

pub fn new_with_mode(
    base_path: &str,
    consumer_name: &str,
    queue_name: &str,
    mode: Mode
) -> Result<Consumer, ErrorQueue>
[src]

pub fn get_batch_size(&mut self) -> u32[src]

pub fn open(&mut self, is_new: bool) -> bool[src]

pub fn get_info(&mut self) -> bool[src]

pub fn pop_header(&mut self) -> bool[src]

pub fn seek_next_pos(&mut self) -> bool[src]

pub fn pop_body(&mut self, msg: &mut [u8]) -> Result<usize, ErrorQueue>[src]

pub fn commit(&mut self)[src]

pub fn next(&mut self, commit: bool) -> bool[src]

pub fn commit_and_next(&mut self) -> bool[src]

Trait Implementations

impl Drop for Consumer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.