January 2019
Intermediate to advanced
520 pages
14h 32m
English
We need the following types for the implementation of a worker:
use actix::System;use failure::{format_err, Error};use image::GenericImageView;use log::debug;use queens_rock::Scanner;use rabbit_actix::queue_actor::{QueueActor, QueueHandler, TaskId};use rabbit_actix::{QrRequest, QrResponse, REQUESTS, RESPONSES};
We imported all the necessary types earlier in this chapter. We also imported two types for decoding QR images. GenericImageView provides the to_luma method to convert an image into grayscale. The Scanner method is a decoder of QR codes provided as grayscale images.
Read now
Unlock full access