pub struct Session {
pub id: SessionID,
pub slots: u32,
pub application: String,
pub creation_time: DateTime<Utc>,
pub state: SessionState,
pub pending: i32,
pub running: i32,
pub succeed: i32,
pub failed: i32,
pub events: Vec<Event>,
pub tasks: Option<Vec<Task>>,
/* private fields */
}Fields§
§id: SessionID§slots: u32§application: String§creation_time: DateTime<Utc>§state: SessionState§pending: i32§running: i32§succeed: i32§failed: i32§events: Vec<Event>§tasks: Option<Vec<Task>>Implementations§
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 list_tasks(&self) -> Result<Vec<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§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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