pub struct ZkQueue { /* private fields */ }Implementations§
Source§impl ZkQueue
impl ZkQueue
pub fn new(zk: Arc<ZooKeeper>, dir: String) -> ZkResult<Self>
Sourcepub fn take(&self) -> ZkResult<Vec<u8>>
pub fn take(&self) -> ZkResult<Vec<u8>>
Removes the head of the queue and returns it, blocking until it succeeds or throws an error
Auto Trait Implementations§
impl Freeze for ZkQueue
impl RefUnwindSafe for ZkQueue
impl Send for ZkQueue
impl Sync for ZkQueue
impl Unpin for ZkQueue
impl UnwindSafe for ZkQueue
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