pub struct Que { /* private fields */ }Implementations§
Source§impl Que
impl Que
pub async fn new(c: Config) -> Result<Que, &'static str>
pub async fn add(&mut self, value: Vec<u8>) -> Result<QueResponse, ()>
pub async fn next(&mut self) -> Result<QueResponse, ()>
pub async fn remove(&mut self, pointer: Pointer) -> Result<QueResponse, ()>
pub async fn reset(&mut self, pointer: Pointer) -> Result<QueResponse, ()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Que
impl RefUnwindSafe for Que
impl Send for Que
impl Sync for Que
impl Unpin for Que
impl UnwindSafe for Que
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