pub struct AgentOsConfigBuilder { /* private fields */ }Expand description
Builder for AgentOsConfig.
Implementations§
Source§impl AgentOsConfigBuilder
impl AgentOsConfigBuilder
pub fn new() -> Self
pub fn database(self, database: VmSqliteDescriptor) -> Self
pub fn sidecar_sqlite_callback(self, callback: SidecarSqliteCallback) -> Self
pub fn packages(self, packages: Vec<PackageRef>) -> Self
pub fn packages_mount_at(self, mount_at: impl Into<String>) -> Self
pub fn package_resolver(self, options: PackageResolverOptions) -> Self
pub fn software_sources(self, sources: Vec<SoftwareSource>) -> Self
pub fn software_registry(self, options: SoftwareRegistryOptions) -> Self
pub fn loopback_exempt_ports(self, ports: Vec<u16>) -> Self
pub fn allowed_node_builtins(self, builtins: Vec<String>) -> Self
pub fn user(self, user: VmUserConfig) -> Self
pub fn environment(self, environment: BTreeMap<String, String>) -> Self
pub fn high_resolution_time(self, enabled: bool) -> Self
pub fn root_filesystem(self, root: RootFilesystemConfig) -> Self
pub fn mounts(self, mounts: Vec<MountConfig>) -> Self
pub fn schedule_driver(self, driver: Arc<dyn ScheduleDriver>) -> Self
pub fn host_functions(self, host_functions: HostFunctionCollections) -> Self
pub fn sidecar_js_bridge_callback( self, callback: SidecarJsBridgeCallback, ) -> Self
pub fn permissions(self, permissions: Permissions) -> Self
pub fn limits(self, limits: AgentOsLimits) -> Self
pub fn sidecar(self, sidecar: AgentOsSidecarConfig) -> Self
pub fn sidecar_binary_path(self, path: impl Into<String>) -> Self
pub fn build(self) -> AgentOsConfig
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentOsConfigBuilder
impl !UnwindSafe for AgentOsConfigBuilder
impl Freeze for AgentOsConfigBuilder
impl Send for AgentOsConfigBuilder
impl Sync for AgentOsConfigBuilder
impl Unpin for AgentOsConfigBuilder
impl UnsafeUnpin for AgentOsConfigBuilder
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