pub struct AQueue { /* private fields */ }
Implementations§
Source§impl AQueue
impl AQueue
pub fn new() -> AQueue
pub async fn run<A, T, S>( &self, call: impl FnOnce(A) -> T + Send + 'static, arg: A, ) -> Result<S, Box<dyn Error + Send + Sync>>
pub async fn push<T>( &self, __arg1: (Receiver<Result<T, Box<dyn Error + Send + Sync>>>, Box<dyn QueueItem + Send + Sync>), ) -> Result<T, Box<dyn Error + Send + Sync>>
pub async fn run_ing(&self) -> Result<(), Box<dyn Error + Send + Sync>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AQueue
impl !RefUnwindSafe for AQueue
impl Unpin for AQueue
impl UnwindSafe for AQueue
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