pub struct ChapterDownloadManager { /* private fields */ }Implementations§
Source§impl ChapterDownloadManager
impl ChapterDownloadManager
pub fn new(state: Addr<DownloadManagerState>) -> Self
Trait Implementations§
Source§impl Actor for ChapterDownloadManager
impl Actor for ChapterDownloadManager
Source§type Context = Context<ChapterDownloadManager>
type Context = Context<ChapterDownloadManager>
Actor execution context type
Source§fn started(&mut self, ctx: &mut Self::Context)
fn started(&mut self, ctx: &mut Self::Context)
Called when an actor gets polled the first time.
Source§fn stopping(&mut self, ctx: &mut Self::Context) -> Running
fn stopping(&mut self, ctx: &mut Self::Context) -> Running
Called after an actor is in
Actor::Stopping state. Read moreSource§fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
Start new actor in arbiter’s thread.
Source§impl Debug for ChapterDownloadManager
impl Debug for ChapterDownloadManager
Source§impl Drop for ChapterDownloadManager
impl Drop for ChapterDownloadManager
Source§impl<A> GetManager<ChapterDownloadManager> for Addr<A>where
A: Actor + Handler<GetChapterDownloadManagerMessage>,
<A as Actor>::Context: ToEnvelope<A, GetChapterDownloadManagerMessage>,
impl<A> GetManager<ChapterDownloadManager> for Addr<A>where
A: Actor + Handler<GetChapterDownloadManagerMessage>,
<A as Actor>::Context: ToEnvelope<A, GetChapterDownloadManagerMessage>,
Source§impl Handler<GetTaskMessage<ChapterDownloadTask>> for ChapterDownloadManager
impl Handler<GetTaskMessage<ChapterDownloadTask>> for ChapterDownloadManager
Source§type Result = <GetTaskMessage<ChapterDownloadTask> as Message>::Result
type Result = <GetTaskMessage<ChapterDownloadTask> as Message>::Result
The type of value that this handler will return. Read more
Source§fn handle(
&mut self,
msg: GetTaskMessage<ChapterDownloadTask>,
_ctx: &mut Self::Context,
) -> Self::Result
fn handle( &mut self, msg: GetTaskMessage<ChapterDownloadTask>, _ctx: &mut Self::Context, ) -> Self::Result
This method is called for every message received by this actor.
Source§impl TaskManager for ChapterDownloadManager
impl TaskManager for ChapterDownloadManager
type Task = ChapterDownloadTask
type DownloadMessage = ChapterDownloadMessage
fn state(&self) -> Addr<DownloadManagerState>
fn notify(&self) -> Arc<Notify> ⓘ
fn tasks(&self) -> Vec<Addr<Self::Task>>
fn tasks_id(&self) -> Vec<Uuid>
fn new_task( &mut self, msg: Self::DownloadMessage, ctx: &mut Self::Context, ) -> Addr<Self::Task>
fn drop_task(&mut self, id: Uuid)
fn get_task(&self, id: Uuid) -> Option<Addr<Self::Task>>
Auto Trait Implementations§
impl !RefUnwindSafe for ChapterDownloadManager
impl !UnwindSafe for ChapterDownloadManager
impl Freeze for ChapterDownloadManager
impl Send for ChapterDownloadManager
impl Sync for ChapterDownloadManager
impl Unpin for ChapterDownloadManager
impl UnsafeUnpin for ChapterDownloadManager
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more