pub struct StateBuilder { /* private fields */ }Expand description
Builder for State.
Implementations§
Source§impl StateBuilder
impl StateBuilder
Sourcepub fn version<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn version<VALUE: Into<String>>(self, value: VALUE) -> Self
version is the version of the specification that is supported.
Sourcepub fn status<VALUE: Into<ContainerState>>(self, value: VALUE) -> Self
pub fn status<VALUE: Into<ContainerState>>(self, value: VALUE) -> Self
status is the runtime status of the container.
Sourcepub fn pid<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn pid<VALUE: Into<i32>>(self, value: VALUE) -> Self
pid is the process ID for the container process.
Sourcepub fn bundle<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
pub fn bundle<VALUE: Into<PathBuf>>(self, value: VALUE) -> Self
bundle is the path to the container’s bundle directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StateBuilder
impl RefUnwindSafe for StateBuilder
impl Send for StateBuilder
impl Sync for StateBuilder
impl Unpin for StateBuilder
impl UnsafeUnpin for StateBuilder
impl UnwindSafe for StateBuilder
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