pub struct SessionStatusRes {
pub status: String,
pub receipt_url: Option<String>,
pub error_msg: Option<String>,
pub state: Option<String>,
pub elapsed_time: Option<f64>,
pub stats: Option<SessionStats>,
}Expand description
Session Status response
Fields§
§status: StringCurrent status
values: [ RUNNING | SUCCEEDED | FAILED | TIMED_OUT | ABORTED ]
receipt_url: Option<String>Final receipt download URL
If the status == SUCCEEDED then this should be present
error_msg: Option<String>Session Error message
If the session is not RUNNING or SUCCEEDED, this is the error
raised from within bonsai, otherwise it is None.
state: Option<String>Session Proving State
If the status is RUNNING, this is a indication of where in the
proving pipeline the session currently is, otherwise it is None.
Possible states in order, include:
SetupExecutorProveSegments: N/MPlannerRecursionRecursionJoin: N/MResolveFinalizeInProgress
elapsed_time: Option<f64>Elapsed Time
Elapsed time for a given session, in seconds
stats: Option<SessionStats>Successful Session Stats
Stats for a given successful session. Returns:
- Count of segments in this proof request
- User cycles run within guest, slightly below total overhead cycles
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SessionStatusRes
impl<'de> Deserialize<'de> for SessionStatusRes
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 SessionStatusRes
impl RefUnwindSafe for SessionStatusRes
impl Send for SessionStatusRes
impl Sync for SessionStatusRes
impl Unpin for SessionStatusRes
impl UnwindSafe for SessionStatusRes
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