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 suid_dumpable: AtomicCell<DumpPolicy>,
}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
suid_dumpable: AtomicCell<DumpPolicy>The default “dumpable” policy assigned to processes when their effective or filesystem
user/group IDs change, or when executing a set-user-ID, set-group-ID, or capability-endowed
binary. Exposed via /proc/sys/fs/suid_dumpable.
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
Auto Trait Implementations§
impl !Freeze for SystemLimits
impl !RefUnwindSafe for SystemLimits
impl Send for SystemLimits
impl Sync for SystemLimits
impl Unpin for SystemLimits
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§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
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> ⓘ
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> ⓘ
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