pub struct DadkUserExecuteContextBuilder { /* private fields */ }Expand description
Builder for DadkUserExecuteContext.
Implementations§
Source§impl DadkUserExecuteContextBuilder
impl DadkUserExecuteContextBuilder
Sourcepub fn sysroot_dir<VALUE: Into<Option<PathBuf>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn sysroot_dir<VALUE: Into<Option<PathBuf>>>( &mut self, value: VALUE, ) -> &mut Self
DragonOS sysroot在主机上的路径
Sourcepub fn config_dir<VALUE: Into<Option<PathBuf>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn config_dir<VALUE: Into<Option<PathBuf>>>( &mut self, value: VALUE, ) -> &mut Self
DADK任务配置文件所在目录
Sourcepub fn thread_num<VALUE: Into<Option<usize>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn thread_num<VALUE: Into<Option<usize>>>( &mut self, value: VALUE, ) -> &mut Self
并行线程数量
Sourcepub fn cache_dir<VALUE: Into<Option<PathBuf>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn cache_dir<VALUE: Into<Option<PathBuf>>>( &mut self, value: VALUE, ) -> &mut Self
dadk缓存根目录
Sourcepub fn target_arch<VALUE: Into<TargetArch>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn target_arch<VALUE: Into<TargetArch>>( &mut self, value: VALUE, ) -> &mut Self
目标架构
Sourcepub fn build(
&self,
) -> Result<DadkUserExecuteContext, DadkUserExecuteContextBuilderError>
pub fn build( &self, ) -> Result<DadkUserExecuteContext, DadkUserExecuteContextBuilderError>
Trait Implementations§
Source§impl Clone for DadkUserExecuteContextBuilder
impl Clone for DadkUserExecuteContextBuilder
Source§fn clone(&self) -> DadkUserExecuteContextBuilder
fn clone(&self) -> DadkUserExecuteContextBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DadkUserExecuteContextBuilder
impl RefUnwindSafe for DadkUserExecuteContextBuilder
impl Send for DadkUserExecuteContextBuilder
impl Sync for DadkUserExecuteContextBuilder
impl Unpin for DadkUserExecuteContextBuilder
impl UnwindSafe for DadkUserExecuteContextBuilder
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