pub struct Workers { /* private fields */ }
Implementations§
Source§impl Workers
impl Workers
pub fn new(config: &RedisConfig) -> RedisResult<Self>
pub fn new_with_client(client: Arc<Client>) -> Self
pub async fn start<Ctx, T>( &self, ctx: Ctx, worker: AsyncWorker<Ctx, T>, ) -> Result<()>
pub async fn terminate(&self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workers
impl !RefUnwindSafe for Workers
impl Send for Workers
impl Sync for Workers
impl Unpin for Workers
impl !UnwindSafe for Workers
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