pub enum SystemdManagerError {
Show 15 variants
WrappedIo(WrappedIoError),
CgroupsPath(CgroupsPathError),
InvalidSliceName(String),
SystemdClient(SystemdClientError),
JoinSafely(JoinSafelyError),
FileNotFound(PathBuf),
BadDelegationBoundary {
boundary: PathBuf,
cgroup: PathBuf,
},
V2Manager(V2ManagerError),
WaitForProcessInCgroupTimeout(String),
Cpu(SystemdCpuError),
CpuSet(SystemdCpuSetError),
Io(SystemdIoError),
Memory(SystemdMemoryError),
Pids(Infallible),
Unified(SystemdUnifiedError),
}Variants§
WrappedIo(WrappedIoError)
CgroupsPath(CgroupsPathError)
InvalidSliceName(String)
SystemdClient(SystemdClientError)
JoinSafely(JoinSafelyError)
FileNotFound(PathBuf)
BadDelegationBoundary
V2Manager(V2ManagerError)
WaitForProcessInCgroupTimeout(String)
Cpu(SystemdCpuError)
CpuSet(SystemdCpuSetError)
Io(SystemdIoError)
Memory(SystemdMemoryError)
Pids(Infallible)
Unified(SystemdUnifiedError)
Implementations§
Trait Implementations§
Source§impl Debug for SystemdManagerError
impl Debug for SystemdManagerError
Source§impl Display for SystemdManagerError
impl Display for SystemdManagerError
Source§impl Error for SystemdManagerError
impl Error for SystemdManagerError
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<CgroupsPathError> for SystemdManagerError
impl From<CgroupsPathError> for SystemdManagerError
Source§fn from(source: CgroupsPathError) -> Self
fn from(source: CgroupsPathError) -> Self
Converts to this type from the input type.
Source§impl From<JoinSafelyError> for SystemdManagerError
impl From<JoinSafelyError> for SystemdManagerError
Source§fn from(source: JoinSafelyError) -> Self
fn from(source: JoinSafelyError) -> Self
Converts to this type from the input type.
Source§impl From<SystemdManagerError> for AnyManagerError
impl From<SystemdManagerError> for AnyManagerError
Source§fn from(source: SystemdManagerError) -> Self
fn from(source: SystemdManagerError) -> Self
Converts to this type from the input type.
Source§impl From<SystemdManagerError> for CreateCgroupSetupError
impl From<SystemdManagerError> for CreateCgroupSetupError
Source§fn from(source: SystemdManagerError) -> Self
fn from(source: SystemdManagerError) -> Self
Converts to this type from the input type.
Source§impl From<V2ManagerError> for SystemdManagerError
impl From<V2ManagerError> for SystemdManagerError
Source§fn from(source: V2ManagerError) -> Self
fn from(source: V2ManagerError) -> Self
Converts to this type from the input type.
Source§impl From<WrappedIoError> for SystemdManagerError
impl From<WrappedIoError> for SystemdManagerError
Source§fn from(source: WrappedIoError) -> Self
fn from(source: WrappedIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemdManagerError
impl !RefUnwindSafe for SystemdManagerError
impl Send for SystemdManagerError
impl Sync for SystemdManagerError
impl Unpin for SystemdManagerError
impl UnsafeUnpin for SystemdManagerError
impl !UnwindSafe for SystemdManagerError
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