pub struct SessionFloor {
pub selected_workflow_edition: String,
pub desired_workflow_edition: String,
pub runtime_cap: Option<RuntimeCap>,
}Expand description
The reconciled workflow edition produced by negotiate_session_floor.
Fields§
§selected_workflow_edition: StringThe edition the session runs at: select_workflow_edition across env,
model, AND this runtime.
desired_workflow_edition: StringThe edition env + model alone would have used (always >= selected). When
it differs from selected, the runtime is the limiting tier — see
runtime_cap.
runtime_cap: Option<RuntimeCap>Why the runtime capped the session, or None when it did not.
Implementations§
Source§impl SessionFloor
impl SessionFloor
Sourcepub fn runtime_limited(&self) -> bool
pub fn runtime_limited(&self) -> bool
Whether the runtime capped the session below what env + model would have
used on their own. The run is still safe at selected_workflow_edition
(all three speak it); see runtime_cap for whether
that is a limitation or a declaration.
Trait Implementations§
Source§impl Clone for SessionFloor
impl Clone for SessionFloor
Source§impl Debug for SessionFloor
impl Debug for SessionFloor
impl Eq for SessionFloor
Source§impl PartialEq for SessionFloor
impl PartialEq for SessionFloor
impl StructuralPartialEq for SessionFloor
Auto Trait Implementations§
impl Freeze for SessionFloor
impl RefUnwindSafe for SessionFloor
impl Send for SessionFloor
impl Sync for SessionFloor
impl Unpin for SessionFloor
impl UnsafeUnpin for SessionFloor
impl UnwindSafe for SessionFloor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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