pub struct Flags { /* private fields */ }Implementations§
Source§impl Flags
impl Flags
pub const HAS_DICT: Self
pub const MEMFD_HINT: Self
pub const SHARUN_COMPAT: Self
Sourcepub const STORED: Self
pub const STORED: Self
Payload blocks are stored raw (no zstd). compressed_size
equals original_size for every block; the runtime reads
payload bytes directly without decompression.
Sourcepub const EXTERNAL_UPDATER: Self
pub const EXTERNAL_UPDATER: Self
The package records an update URL but carries no updater, so it is updated by something else (a package manager, a deployment system). Set only for that case, which leaves every package built before this flag existed correctly describing itself as carrying an embedded updater.
Sourcepub const NO_HOST_LIB_DIRS: Self
pub const NO_HOST_LIB_DIRS: Self
Do not put the host’s library directories on the search path.
The runtime adds them so host GPU drivers stay reachable, but they hold the whole system’s libraries, so any soname the bundle is missing is silently satisfied from the host and loaded next to the bundled libc. Set for packages that need nothing from the host.
Polarity is deliberate: unset means “expose”, so every package built before this flag existed keeps its behaviour.
pub const fn empty() -> Self
pub const fn bits(&self) -> u16
Sourcepub const fn from_bits_retain(bits: u16) -> Self
pub const fn from_bits_retain(bits: u16) -> Self
Wrap raw bits, retaining every bit (including bits with no
defined flag). Named to match its behavior; it does not mask
to known flags the way real from_bits_truncate would.
pub const fn contains(&self, other: Self) -> bool
Trait Implementations§
Source§impl BitOrAssign for Flags
impl BitOrAssign for Flags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read more