Struct scheduler_service_lib::SchedulerContext
source · pub struct SchedulerContext {
server_stopper: Option<ServerStopper>,
config: Configuration,
}
Fields§
§server_stopper: Option<ServerStopper>
§config: Configuration
Implementations§
source§impl SchedulerContext
impl SchedulerContext
pub fn new(server_stopper: Option<ServerStopper>, config: Configuration) -> Self
pub fn admin_token(&self) -> Option<String>
pub fn api_token(&self) -> Option<String>
pub fn set_admin_token(&mut self, admin_token: Option<String>)
pub fn set_api_token(&mut self, api_token: Option<String>)
pub fn working_directory(&self) -> &Path
pub fn server_stopper(&self) -> &Option<ServerStopper>
pub fn config(&self) -> &Configuration
pub fn set_server_stopper(&mut self, server_stopper: Option<ServerStopper>)
Trait Implementations§
source§impl Clone for SchedulerContext
impl Clone for SchedulerContext
source§fn clone(&self) -> SchedulerContext
fn clone(&self) -> SchedulerContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SchedulerContext
impl Send for SchedulerContext
impl Sync for SchedulerContext
impl Unpin for SchedulerContext
impl !UnwindSafe for SchedulerContext
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