Struct snapshot_trigger_service::Context
source · pub struct Context {
inner: SchedulerContext,
state: ContextState,
}
Fields§
§inner: SchedulerContext
§state: ContextState
Implementations§
source§impl Context
impl Context
pub fn new(config: Configuration) -> Self
pub fn set_server_stopper(&mut self, server_stopper: ServerStopper)
pub fn server_stopper(&self) -> &Option<ServerStopper>
pub fn state(&self) -> &ContextState
pub fn state_mut(&mut self) -> &mut ContextState
pub fn address(&self) -> &SocketAddr
pub fn api_token(&self) -> Option<String>
pub fn set_api_token(&mut self, api_token: String)
pub fn working_directory(&self) -> &Path
source§impl Context
impl Context
pub fn into_scheduler_context(&self) -> SchedulerContext
Trait Implementations§
source§impl RunContext<JobParameters, ()> for Context
impl RunContext<JobParameters, ()> for Context
fn run_requested(&self) -> Option<(Uuid, JobParameters)>
fn new_run_started(&mut self) -> Result<(), Error>
fn run_finished(&mut self, output_info: Option<()>) -> Result<(), Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
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