pub struct Session {
pub id: SessionID,
pub slots: i32,
pub application: String,
pub creation_time: DateTime<Utc>,
pub state: SessionState,
pub pending: i32,
pub running: i32,
pub succeed: i32,
pub failed: i32,
/* private fields */
}Fields§
§id: SessionID§slots: i32§application: String§creation_time: DateTime<Utc>§state: SessionState§pending: i32§running: i32§succeed: i32§failed: i32Implementations§
Source§impl Session
impl Session
pub async fn create_task( &self, input: Option<TaskInput>, ) -> Result<Task, FlameError>
pub async fn get_task(&self, id: TaskID) -> Result<Task, FlameError>
pub async fn run_task( &self, input: Option<TaskInput>, informer_ptr: TaskInformerPtr, ) -> Result<(), FlameError>
pub async fn watch_task( &self, session_id: SessionID, task_id: TaskID, informer_ptr: TaskInformerPtr, ) -> Result<(), FlameError>
pub async fn close(&self) -> Result<(), FlameError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl !UnwindSafe for Session
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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