pub struct Scheduler {
pub file: Arc<File>,
pub plugin: Arc<Plugin>,
pub prework: Arc<Prework>,
pub process: Arc<Process>,
pub ongoing: Arc<Mutex<Ongoing>>,
/* private fields */
}
Fields§
§file: Arc<File>
§plugin: Arc<Plugin>
§prework: Arc<Prework>
§process: Arc<Process>
§ongoing: Arc<Mutex<Ongoing>>
Implementations§
Source§impl Scheduler
impl Scheduler
pub fn serve() -> Self
pub fn cancel(&self, id: usize) -> bool
pub fn shutdown(&self)
pub fn file_cut(&self, from: Url, to: Url, force: bool)
pub fn file_copy(&self, from: Url, to: Url, force: bool, follow: bool)
pub fn file_link(&self, from: Url, to: Url, relative: bool, force: bool)
pub fn file_hardlink(&self, from: Url, to: Url, force: bool, follow: bool)
pub fn file_delete(&self, target: Url)
pub fn file_trash(&self, target: Url)
pub fn plugin_micro(&self, opt: PluginOpt)
pub fn plugin_macro(&self, opt: PluginOpt)
pub fn fetch_paged(&self, fetcher: &'static Fetcher, targets: Vec<File>)
pub fn preload_paged(&self, preloader: &'static Preloader, target: &File)
pub fn prework_size(&self, targets: Vec<&Url>)
pub fn process_open(&self, _: ProcessExecOpt)
Auto Trait Implementations§
impl Freeze for Scheduler
impl !RefUnwindSafe for Scheduler
impl Send for Scheduler
impl Sync for Scheduler
impl Unpin for Scheduler
impl !UnwindSafe for Scheduler
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
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