pub struct AgentOsConfigBuilder { /* private fields */ }Expand description
Builder for AgentOsConfig.
Implementations§
Source§impl AgentOsConfigBuilder
impl AgentOsConfigBuilder
pub fn new() -> Self
pub fn software(self, software: Vec<SoftwareInput>) -> Self
pub fn loopback_exempt_ports(self, ports: Vec<u16>) -> Self
pub fn allowed_node_builtins(self, builtins: Vec<String>) -> Self
pub fn module_access_cwd(self, cwd: impl Into<String>) -> Self
pub fn root_filesystem(self, root: RootFilesystemConfig) -> Self
pub fn mounts(self, mounts: Vec<MountConfig>) -> Self
pub fn additional_instructions(self, instructions: impl Into<String>) -> Self
pub fn schedule_driver(self, driver: Arc<dyn ScheduleDriver>) -> Self
pub fn tool_kits(self, tool_kits: Vec<ToolKit>) -> 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§
Source§impl Default for AgentOsConfigBuilder
impl Default for AgentOsConfigBuilder
Source§fn default() -> AgentOsConfigBuilder
fn default() -> AgentOsConfigBuilder
Returns the “default value” for a type. Read more
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
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 moreCreates a shared type from an unshared type.