pub struct CodexBuilder { /* private fields */ }Implementations§
Source§impl CodexBuilder
impl CodexBuilder
pub fn binary(self, path: impl Into<PathBuf>) -> Self
pub fn working_dir(self, path: impl Into<PathBuf>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn envs( self, vars: impl IntoIterator<Item = (impl Into<String>, impl Into<String>)>, ) -> Self
pub fn timeout_secs(self, seconds: u64) -> Self
pub fn timeout(self, duration: Duration) -> Self
pub fn arg(self, arg: impl Into<String>) -> Self
pub fn config(self, key_value: impl Into<String>) -> Self
pub fn enable(self, feature: impl Into<String>) -> Self
pub fn disable(self, feature: impl Into<String>) -> Self
pub fn retry(self, policy: RetryPolicy) -> Self
pub fn build(self) -> Result<Codex>
Trait Implementations§
Source§impl Debug for CodexBuilder
impl Debug for CodexBuilder
Source§impl Default for CodexBuilder
impl Default for CodexBuilder
Source§fn default() -> CodexBuilder
fn default() -> CodexBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CodexBuilder
impl RefUnwindSafe for CodexBuilder
impl Send for CodexBuilder
impl Sync for CodexBuilder
impl Unpin for CodexBuilder
impl UnsafeUnpin for CodexBuilder
impl UnwindSafe for CodexBuilder
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