pub struct SystemLimits {
pub inotify: InotifyLimits,
pub socket: SocketLimits,
pub pipe_max_size: AtomicUsize,
pub io_uring_disabled: AtomicI32,
pub io_uring_group: AtomicI32,
pub force_lowest_power_mode: AtomicBool,
}Fields§
§inotify: InotifyLimitsLimits applied to inotify objects.
socket: SocketLimitsLimits applied to socket objects.
pipe_max_size: AtomicUsizeThe maximum size of pipes in the system.
io_uring_disabled: AtomicI32Whether IoUring is disabled.
0 -> io_uring is enabled (default) 1 -> io_uring is enabled for processes in the io_uring_group 2 -> io_uring is disabled
See https://docs.kernel.org/admin-guide/sysctl/kernel.html#io-uring-disabled
io_uring_group: AtomicI32If io_uring_disabled is 1, then io_uring is enabled only for processes with CAP_SYS_ADMIN or that are members of this group.
See https://docs.kernel.org/admin-guide/sysctl/kernel.html#io-uring-group
force_lowest_power_mode: AtomicBoolWhether or not the minimum power mode of the device is enabled.
This is a transitional flag that does not exist on Linux.
Trait Implementations§
Source§impl Debug for SystemLimits
impl Debug for SystemLimits
Source§impl Default for SystemLimits
impl Default for SystemLimits
Source§fn default() -> SystemLimits
fn default() -> SystemLimits
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for SystemLimits
impl !RefUnwindSafe for SystemLimits
impl Send for SystemLimits
impl Sync for SystemLimits
impl Unpin for SystemLimits
impl UnwindSafe for SystemLimits
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [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 moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.