eureka-mmanager 0.4.0

An Actix actor collection for downloading manga, chapters, covers from Mangadex
Documentation
pub mod messages;
pub mod task;

use crate::{history::service::HistoryActorService, DirsOptions};

pub use self::task::*;

use actix::prelude::*;
use mangadex_api::MangaDexClient;

#[derive(Debug)]
pub struct DownloadManagerState {
    dir_option: Addr<DirsOptions>,
    client: MangaDexClient,
    history: Addr<HistoryActorService>,
}

impl DownloadManagerState {
    pub fn new(
        dir_option: Addr<DirsOptions>,
        client: MangaDexClient,
        history: Addr<HistoryActorService>,
    ) -> Self {
        Self {
            dir_option,
            client,
            history,
        }
    }
}

impl Actor for DownloadManagerState {
    type Context = Context<Self>;
}