pub struct State {
pub oci_version: String,
pub id: String,
pub status: Status,
pub pid: Option<u32>,
pub bundle: PathBuf,
pub annotations: HashMap<String, String>,
}Expand description
OCI container state.
This is the state structure as defined by the OCI runtime specification.
It is passed to hooks via stdin and returned by the state command.
Fields§
§oci_version: StringOCI specification version.
id: StringContainer ID (unique identifier).
status: StatusContainer status.
pid: Option<u32>Process ID of the container’s init process (if running).
bundle: PathBufAbsolute path to the bundle directory.
annotations: HashMap<String, String>Annotations from the container configuration.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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