pub enum LibcontainerError {
Show 29 variants
IncorrectStatus,
Exist,
NoDirectory,
InvalidInput(String),
NoExecutors,
NoUserNamespace,
InvalidID(ErrInvalidID),
MissingSpec(MissingSpecError),
InvalidSpec(ErrInvalidSpec),
Tty(TTYError),
UserNamespace(UserNamespaceError),
NotifyListener(NotifyListenerError),
Config(ConfigError),
Hook(HookError),
State(StateError),
Spec(OciSpecError),
MainProcess(ProcessError),
Procfs(ProcError),
Capabilities(CapsError),
CgroupManager(AnyManagerError),
CgroupCreate(CreateCgroupSetupError),
CgroupGet(GetCgroupSetupError),
Checkpoint(CheckpointError),
CreateContainerError(CreateContainerError),
OtherSyscall(Error),
OtherIO(Error),
OtherSerialization(Error),
OtherCgroup(String),
Other(String),
}Variants§
IncorrectStatus
Exist
NoDirectory
InvalidInput(String)
NoExecutors
NoUserNamespace
InvalidID(ErrInvalidID)
MissingSpec(MissingSpecError)
InvalidSpec(ErrInvalidSpec)
Tty(TTYError)
UserNamespace(UserNamespaceError)
NotifyListener(NotifyListenerError)
Config(ConfigError)
Hook(HookError)
State(StateError)
Spec(OciSpecError)
MainProcess(ProcessError)
Procfs(ProcError)
Capabilities(CapsError)
CgroupManager(AnyManagerError)
CgroupCreate(CreateCgroupSetupError)
CgroupGet(GetCgroupSetupError)
Checkpoint(CheckpointError)
CreateContainerError(CreateContainerError)
OtherSyscall(Error)
OtherIO(Error)
OtherSerialization(Error)
OtherCgroup(String)
Other(String)
Trait Implementations§
Source§impl Debug for LibcontainerError
impl Debug for LibcontainerError
Source§impl Display for LibcontainerError
impl Display for LibcontainerError
Source§impl Error for LibcontainerError
impl Error for LibcontainerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AnyManagerError> for LibcontainerError
impl From<AnyManagerError> for LibcontainerError
Source§fn from(source: AnyManagerError) -> Self
fn from(source: AnyManagerError) -> Self
Converts to this type from the input type.
Source§impl From<CapsError> for LibcontainerError
impl From<CapsError> for LibcontainerError
Source§impl From<CheckpointError> for LibcontainerError
impl From<CheckpointError> for LibcontainerError
Source§fn from(source: CheckpointError) -> Self
fn from(source: CheckpointError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for LibcontainerError
impl From<ConfigError> for LibcontainerError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<CreateCgroupSetupError> for LibcontainerError
impl From<CreateCgroupSetupError> for LibcontainerError
Source§fn from(source: CreateCgroupSetupError) -> Self
fn from(source: CreateCgroupSetupError) -> Self
Converts to this type from the input type.
Source§impl From<CreateContainerError> for LibcontainerError
impl From<CreateContainerError> for LibcontainerError
Source§fn from(source: CreateContainerError) -> Self
fn from(source: CreateContainerError) -> Self
Converts to this type from the input type.
Source§impl From<ErrInvalidID> for LibcontainerError
impl From<ErrInvalidID> for LibcontainerError
Source§fn from(source: ErrInvalidID) -> Self
fn from(source: ErrInvalidID) -> Self
Converts to this type from the input type.
Source§impl From<ErrInvalidSpec> for LibcontainerError
impl From<ErrInvalidSpec> for LibcontainerError
Source§fn from(source: ErrInvalidSpec) -> Self
fn from(source: ErrInvalidSpec) -> Self
Converts to this type from the input type.
Source§impl From<GetCgroupSetupError> for LibcontainerError
impl From<GetCgroupSetupError> for LibcontainerError
Source§fn from(source: GetCgroupSetupError) -> Self
fn from(source: GetCgroupSetupError) -> Self
Converts to this type from the input type.
Source§impl From<HookError> for LibcontainerError
impl From<HookError> for LibcontainerError
Source§impl From<MissingSpecError> for LibcontainerError
impl From<MissingSpecError> for LibcontainerError
Source§fn from(source: MissingSpecError) -> Self
fn from(source: MissingSpecError) -> Self
Converts to this type from the input type.
Source§impl From<NotifyListenerError> for LibcontainerError
impl From<NotifyListenerError> for LibcontainerError
Source§fn from(source: NotifyListenerError) -> Self
fn from(source: NotifyListenerError) -> Self
Converts to this type from the input type.
Source§impl From<OciSpecError> for LibcontainerError
impl From<OciSpecError> for LibcontainerError
Source§fn from(source: OciSpecError) -> Self
fn from(source: OciSpecError) -> Self
Converts to this type from the input type.
Source§impl From<ProcError> for LibcontainerError
impl From<ProcError> for LibcontainerError
Source§impl From<ProcessError> for LibcontainerError
impl From<ProcessError> for LibcontainerError
Source§fn from(source: ProcessError) -> Self
fn from(source: ProcessError) -> Self
Converts to this type from the input type.
Source§impl From<StateError> for LibcontainerError
impl From<StateError> for LibcontainerError
Source§fn from(source: StateError) -> Self
fn from(source: StateError) -> Self
Converts to this type from the input type.
Source§impl From<TTYError> for LibcontainerError
impl From<TTYError> for LibcontainerError
Source§impl From<UserNamespaceError> for LibcontainerError
impl From<UserNamespaceError> for LibcontainerError
Source§fn from(source: UserNamespaceError) -> Self
fn from(source: UserNamespaceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LibcontainerError
impl !RefUnwindSafe for LibcontainerError
impl Send for LibcontainerError
impl Sync for LibcontainerError
impl Unpin for LibcontainerError
impl !UnwindSafe for LibcontainerError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more