Struct v_queue::consumer::Consumer [−][src]
Fields
name: String
queue: Queue
count_popped: u32
id: u32
header: Header
Implementations
impl Consumer
[src]
pub fn new(
base_path: &str,
consumer_name: &str,
queue_name: &str
) -> Result<Consumer, ErrorQueue>
[src]
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>
[src]
base_path: &str,
consumer_name: &str,
queue_name: &str,
mode: Mode
) -> Result<Consumer, ErrorQueue>
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
Auto Trait Implementations
impl RefUnwindSafe for Consumer
impl Send for Consumer
impl Sync for Consumer
impl Unpin for Consumer
impl UnwindSafe for Consumer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,