pub struct SessionLivedBackendStatus {
pub submitted: Option<bool>,
pub constructed: Option<bool>,
pub scheduled: Option<bool>,
pub running: Option<bool>,
pub ready: Option<bool>,
pub swept: Option<bool>,
pub failed: Option<bool>,
pub node_name: Option<String>,
pub ip: Option<String>,
pub port: Option<u16>,
pub url: Option<String>,
}Expand description
Status flags associated with a backend.
Fields§
§submitted: Option<bool>Set to true by spawner once the backing resources (pod and service) have been created.
constructed: Option<bool>Set to true by spawner once the backing pod object exists.
scheduled: Option<bool>Set to true by spawner once the backing pod has been assigned to a node.
running: Option<bool>Set to true by spawner once the backing pod is observed in the Running state.
ready: Option<bool>Set to true by sweeper once the sidecar proxy issues an event with ready
set to true.
swept: Option<bool>Set to true by sweeper once the pod is observed to be inactive (per sidecar
events) for at least its grace period. This marks the SessionLivedBackend for
deletion by spawner.
failed: Option<bool>Set to true by spawner if the pod has failed.
node_name: Option<String>The name of the Kubernetes cluster node that this backend has been assigned to.
This is initially None until a backend has been assigned to a node. Once it has, this never changes.
ip: Option<String>IP of the service associated with this backend.
port: Option<u16>Port of the service associated with this backend.
url: Option<String>In-cluster URL associated with this backend.
Implementations§
Source§impl SessionLivedBackendStatus
impl SessionLivedBackendStatus
pub fn patch_state( state: SessionLivedBackendState, base_status: SessionLivedBackendStatus, ) -> SessionLivedBackendStatus
Trait Implementations§
Source§impl Clone for SessionLivedBackendStatus
impl Clone for SessionLivedBackendStatus
Source§fn clone(&self) -> SessionLivedBackendStatus
fn clone(&self) -> SessionLivedBackendStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SessionLivedBackendStatus
impl Debug for SessionLivedBackendStatus
Source§impl Default for SessionLivedBackendStatus
impl Default for SessionLivedBackendStatus
Source§fn default() -> SessionLivedBackendStatus
fn default() -> SessionLivedBackendStatus
Source§impl<'de> Deserialize<'de> for SessionLivedBackendStatus
impl<'de> Deserialize<'de> for SessionLivedBackendStatus
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>,
Source§impl JsonSchema for SessionLivedBackendStatus
impl JsonSchema for SessionLivedBackendStatus
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for SessionLivedBackendStatus
Auto Trait Implementations§
impl Freeze for SessionLivedBackendStatus
impl RefUnwindSafe for SessionLivedBackendStatus
impl Send for SessionLivedBackendStatus
impl Sync for SessionLivedBackendStatus
impl Unpin for SessionLivedBackendStatus
impl UnwindSafe for SessionLivedBackendStatus
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,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more