pub struct SemihostingConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> SemihostingConfigBuilder<S>
impl<S: State> SemihostingConfigBuilder<S>
Sourcepub fn build(self) -> SemihostingConfigwhere
S: IsComplete,
pub fn build(self) -> SemihostingConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn enable(self, value: OnOff) -> SemihostingConfigBuilder<SetEnable<S>>where
S::Enable: IsUnset,
pub fn enable(self, value: OnOff) -> SemihostingConfigBuilder<SetEnable<S>>where
S::Enable: IsUnset,
Sourcepub fn maybe_enable(
self,
value: Option<OnOff>,
) -> SemihostingConfigBuilder<SetEnable<S>>where
S::Enable: IsUnset,
pub fn maybe_enable(
self,
value: Option<OnOff>,
) -> SemihostingConfigBuilder<SetEnable<S>>where
S::Enable: IsUnset,
Sourcepub fn target(
self,
value: SemihostingTarget,
) -> SemihostingConfigBuilder<SetTarget<S>>where
S::Target: IsUnset,
pub fn target(
self,
value: SemihostingTarget,
) -> SemihostingConfigBuilder<SetTarget<S>>where
S::Target: IsUnset,
Sourcepub fn maybe_target(
self,
value: Option<SemihostingTarget>,
) -> SemihostingConfigBuilder<SetTarget<S>>where
S::Target: IsUnset,
pub fn maybe_target(
self,
value: Option<SemihostingTarget>,
) -> SemihostingConfigBuilder<SetTarget<S>>where
S::Target: IsUnset,
Sourcepub fn chardev(self, value: String) -> SemihostingConfigBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
pub fn chardev(self, value: String) -> SemihostingConfigBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
Sourcepub fn maybe_chardev(
self,
value: Option<String>,
) -> SemihostingConfigBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
pub fn maybe_chardev(
self,
value: Option<String>,
) -> SemihostingConfigBuilder<SetChardev<S>>where
S::Chardev: IsUnset,
Sourcepub fn userspace(
self,
value: OnOff,
) -> SemihostingConfigBuilder<SetUserspace<S>>where
S::Userspace: IsUnset,
pub fn userspace(
self,
value: OnOff,
) -> SemihostingConfigBuilder<SetUserspace<S>>where
S::Userspace: IsUnset,
Sourcepub fn maybe_userspace(
self,
value: Option<OnOff>,
) -> SemihostingConfigBuilder<SetUserspace<S>>where
S::Userspace: IsUnset,
pub fn maybe_userspace(
self,
value: Option<OnOff>,
) -> SemihostingConfigBuilder<SetUserspace<S>>where
S::Userspace: IsUnset,
Sourcepub fn args(self, value: Vec<String>) -> SemihostingConfigBuilder<SetArgs<S>>where
S::Args: IsUnset,
pub fn args(self, value: Vec<String>) -> SemihostingConfigBuilder<SetArgs<S>>where
S::Args: IsUnset,
Sourcepub fn maybe_args(
self,
value: Option<Vec<String>>,
) -> SemihostingConfigBuilder<SetArgs<S>>where
S::Args: IsUnset,
pub fn maybe_args(
self,
value: Option<Vec<String>>,
) -> SemihostingConfigBuilder<SetArgs<S>>where
S::Args: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for SemihostingConfigBuilder<S>
impl<S> RefUnwindSafe for SemihostingConfigBuilder<S>
impl<S> Send for SemihostingConfigBuilder<S>
impl<S> Sync for SemihostingConfigBuilder<S>
impl<S> Unpin for SemihostingConfigBuilder<S>
impl<S> UnsafeUnpin for SemihostingConfigBuilder<S>
impl<S> UnwindSafe for SemihostingConfigBuilder<S>
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