pub struct SetLifecycleStateRequest {
pub id: String,
pub state: i32,
pub detail: String,
}Expand description
Push a state transition. CapabilityProviders call this after their
on_init / on_activate / on_deactivate handler returns; rbnx and
the executor use the result to gate follow-up Driver(CMD_*) calls
without polling.
Validation policy. Two tiers – Atlas does NOT accept literally everything:
-
HARD-reject (gRPC error, no state change):
iddoes not refer to a registered CapabilityProvider -> NotFoundstateis STATE_UNSPECIFIED -> InvalidArgument
-
SOFT-accept (transition is applied, new state stored,
warnlogged) whenever the (previous_state, new_state) edge is not one of the legal FSM edges in the LifecycleState diagram. The CapabilityProvider is always the source of truth – a hardened transition check would create boot-time deadlocks if an Atlas restart loses pushed state mid-lifecycle, so we log and keep going. Pre-launch tooling (rbnx caps) surfaces the warns so out-of-spec transitions stay visible without blocking progress.
Fields§
§id: String§state: i32§detail: StringOptional human-readable reason / error attached to this
transition, shown in rbnx caps. Empty when normal success.
Implementations§
Source§impl SetLifecycleStateRequest
impl SetLifecycleStateRequest
Sourcepub fn state(&self) -> LifecycleState
pub fn state(&self) -> LifecycleState
Returns the enum value of state, or the default if the field is set to an invalid enum value.
Sourcepub fn set_state(&mut self, value: LifecycleState)
pub fn set_state(&mut self, value: LifecycleState)
Sets state to the provided enum value.
Trait Implementations§
Source§impl Clone for SetLifecycleStateRequest
impl Clone for SetLifecycleStateRequest
Source§fn clone(&self) -> SetLifecycleStateRequest
fn clone(&self) -> SetLifecycleStateRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SetLifecycleStateRequest
impl Debug for SetLifecycleStateRequest
Source§impl Default for SetLifecycleStateRequest
impl Default for SetLifecycleStateRequest
Source§impl Hash for SetLifecycleStateRequest
impl Hash for SetLifecycleStateRequest
Source§impl Message for SetLifecycleStateRequest
impl Message for SetLifecycleStateRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SetLifecycleStateRequest
impl PartialEq for SetLifecycleStateRequest
impl Eq for SetLifecycleStateRequest
impl StructuralPartialEq for SetLifecycleStateRequest
Auto Trait Implementations§
impl Freeze for SetLifecycleStateRequest
impl RefUnwindSafe for SetLifecycleStateRequest
impl Send for SetLifecycleStateRequest
impl Sync for SetLifecycleStateRequest
impl Unpin for SetLifecycleStateRequest
impl UnsafeUnpin for SetLifecycleStateRequest
impl UnwindSafe for SetLifecycleStateRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].