pub struct Scheduler {
pub adaptor: String,
pub identifier: String,
/* private fields */
}
Expand description
Represents a scheduler that can be used to submit jobs and retrieve queue information.
Fields§
§adaptor: String
§identifier: String
Implementations§
Source§impl Scheduler
impl Scheduler
Sourcepub async fn create<S1, S2, S3>(
adaptor: S1,
location: S2,
credential: Credential,
xenon_endpoint: S3,
properties: Option<HashMap<String, String>>,
) -> Result<Self>
pub async fn create<S1, S2, S3>( adaptor: S1, location: S2, credential: Credential, xenon_endpoint: S3, properties: Option<HashMap<String, String>>, ) -> Result<Self>
Sourcepub async fn create_local<S1>(xenon_endpoint: S1) -> Result<Self>
pub async fn create_local<S1>(xenon_endpoint: S1) -> Result<Self>
Sourcepub async fn get_credential(&mut self) -> Result<Option<Credential>>
pub async fn get_credential(&mut self) -> Result<Option<Credential>>
Sourcepub async fn get_default_queue_name(&mut self) -> Result<String>
pub async fn get_default_queue_name(&mut self) -> Result<String>
Sourcepub async fn get_default_runtime(&mut self) -> Result<u32>
pub async fn get_default_runtime(&mut self) -> Result<u32>
Sourcepub async fn get_filesystem(&mut self) -> Result<FileSystem>
pub async fn get_filesystem(&mut self) -> Result<FileSystem>
Sourcepub async fn get_location(&mut self) -> Result<String>
pub async fn get_location(&mut self) -> Result<String>
Sourcepub async fn get_queue_names(&mut self) -> Result<Vec<String>>
pub async fn get_queue_names(&mut self) -> Result<Vec<String>>
Sourcepub async fn get_queue_status<S: Into<String>>(
&mut self,
queue: S,
) -> Result<QueueStatus>
pub async fn get_queue_status<S: Into<String>>( &mut self, queue: S, ) -> Result<QueueStatus>
Sourcepub async fn get_queue_statuses(
&mut self,
queues: Option<Vec<String>>,
) -> Result<Vec<QueueStatus>>
pub async fn get_queue_statuses( &mut self, queues: Option<Vec<String>>, ) -> Result<Vec<QueueStatus>>
Sourcepub async fn list_schedulers<S1>(xenon_endpoint: S1) -> Result<Vec<String>>
pub async fn list_schedulers<S1>(xenon_endpoint: S1) -> Result<Vec<String>>
Sourcepub async fn submit_batch_job(
&mut self,
description: JobDescription,
) -> Result<Job>
pub async fn submit_batch_job( &mut self, description: JobDescription, ) -> Result<Job>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request