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§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: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
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
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