pub enum ReadyCheck {
Running,
Agent,
DefaultRoute,
UserExists(String),
PathWritable(String),
Command(Vec<String>),
}Expand description
A readiness check. “Running” alone is not ready: networking comes up a beat after the instance does.
Variants§
Running
The instance reports Running.
Agent
The incus agent answers exec (VMs; always true for a container once running).
DefaultRoute
The guest has a default route (IPv4 or IPv6).
UserExists(String)
getent passwd <user> succeeds in the guest.
PathWritable(String)
The path is writable by the service’s user (else root).
Command(Vec<String>)
This argv exits 0 in the guest (run as root).
Trait Implementations§
Source§impl Clone for ReadyCheck
impl Clone for ReadyCheck
Source§fn clone(&self) -> ReadyCheck
fn clone(&self) -> ReadyCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReadyCheck
impl Debug for ReadyCheck
Source§impl<'de> Deserialize<'de> for ReadyCheck
impl<'de> Deserialize<'de> for ReadyCheck
Source§fn deserialize<D>(d: D) -> Result<ReadyCheck, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<ReadyCheck, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ReadyCheck
impl Display for ReadyCheck
Source§impl JsonSchema for ReadyCheck
impl JsonSchema for ReadyCheck
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ReadyCheck
impl PartialEq for ReadyCheck
Source§impl Serialize for ReadyCheck
impl Serialize for ReadyCheck
Source§fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
s: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ReadyCheck
Auto Trait Implementations§
impl Freeze for ReadyCheck
impl RefUnwindSafe for ReadyCheck
impl Send for ReadyCheck
impl Sync for ReadyCheck
impl Unpin for ReadyCheck
impl UnsafeUnpin for ReadyCheck
impl UnwindSafe for ReadyCheck
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more