#[non_exhaustive]pub struct BuildOptions {
pub workgroup_size: Option<[u32; 3]>,
pub region_generator: Option<&'static str>,
pub tenant_id: Option<u32>,
}Expand description
Shared options every Cat-A builder threads through. Lives here so every op agrees on the same surface.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.workgroup_size: Option<[u32; 3]>Workgroup size override. None = op’s canonical default.
region_generator: Option<&'static str>Region generator override. None = op’s canonical "vyre-libs::…"
identifier. Used when a downstream crate wraps a Cat-A op and
wants its own generator id in conformance certificates.
tenant_id: Option<u32>Tenant id baked into the region metadata for multi-tenant
deployments. Routed through the megakernel’s tenant-mask table
when the Program runs inside vyre-runtime.
Implementations§
Source§impl BuildOptions
impl BuildOptions
Sourcepub fn with_workgroup_size(self, size: [u32; 3]) -> Self
pub fn with_workgroup_size(self, size: [u32; 3]) -> Self
Override the workgroup size.
Sourcepub fn with_region_generator(self, name: &'static str) -> Self
pub fn with_region_generator(self, name: &'static str) -> Self
Override the region generator name (must be &'static str).
Sourcepub fn with_tenant_id(self, tenant_id: u32) -> Self
pub fn with_tenant_id(self, tenant_id: u32) -> Self
Stamp a tenant id into the Cat-A op’s region metadata.
Trait Implementations§
Source§impl Clone for BuildOptions
impl Clone for BuildOptions
Source§fn clone(&self) -> BuildOptions
fn clone(&self) -> BuildOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildOptions
impl Debug for BuildOptions
Source§impl Default for BuildOptions
impl Default for BuildOptions
Source§fn default() -> BuildOptions
fn default() -> BuildOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BuildOptions
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnsafeUnpin for BuildOptions
impl UnwindSafe for BuildOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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