pub struct BigQueue { /* private fields */ }
Implementations§
Source§impl BigQueue
impl BigQueue
pub fn with_config( _dir: &str, reset: bool, conf: Config, ) -> Result<BigQueue, Error>
pub fn new(dir: &str, reset: bool) -> Result<BigQueue, Error>
pub fn is_empty(&self) -> bool
pub fn peek(&mut self) -> Result<Vec<u8>, Error>
pub fn pop(&mut self) -> Result<Vec<u8>, Error>
pub fn push(&mut self, bytes: &[u8]) -> Result<(), Error>
pub fn dequeue(&mut self) -> Result<(), Error>
pub fn shrink(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BigQueue
impl !RefUnwindSafe for BigQueue
impl !Send for BigQueue
impl !Sync for BigQueue
impl Unpin for BigQueue
impl !UnwindSafe for BigQueue
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