pub enum Cmode {
Console,
Shell,
Tty,
}Expand description
Console mode. By default, the console command tries to open a connection to one of the available tty devices. By setting cmode to ‘console’ it tries to attach to /dev/console instead. If you set cmode to ‘shell’, it simply invokes a shell inside the container (no login).
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cmode
impl<'de> Deserialize<'de> for Cmode
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
impl StructuralPartialEq for Cmode
Auto Trait Implementations§
impl Freeze for Cmode
impl RefUnwindSafe for Cmode
impl Send for Cmode
impl Sync for Cmode
impl Unpin for Cmode
impl UnsafeUnpin for Cmode
impl UnwindSafe for Cmode
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