pub struct Builder<T, I, R, H, S, P> { /* private fields */ }
Expand description
Structure to build a RustSBI instance
Implementations§
source§impl Builder<Infallible, Infallible, Infallible, Infallible, Infallible, Infallible>
impl Builder<Infallible, Infallible, Infallible, Infallible, Infallible, Infallible>
sourcepub const fn new_machine(
) -> Builder<Infallible, Infallible, Infallible, Infallible, Infallible, Infallible>
pub const fn new_machine( ) -> Builder<Infallible, Infallible, Infallible, Infallible, Infallible, Infallible>
Create a new Builder
from current machine environment
source§impl<T, I, R, H, S, P> Builder<T, I, R, H, S, P>
impl<T, I, R, H, S, P> Builder<T, I, R, H, S, P>
sourcepub fn with_timer<T2: Timer>(self, timer: T2) -> Builder<T2, I, R, H, S, P>
pub fn with_timer<T2: Timer>(self, timer: T2) -> Builder<T2, I, R, H, S, P>
Add Timer programmer extension to RustSBI
sourcepub fn with_ipi<I2: Ipi>(self, ipi: I2) -> Builder<T, I2, R, H, S, P>
pub fn with_ipi<I2: Ipi>(self, ipi: I2) -> Builder<T, I2, R, H, S, P>
Add Inter-processor Interrupt extension to RustSBI
sourcepub fn with_fence<R2: Fence>(self, fence: R2) -> Builder<T, I, R2, H, S, P>
pub fn with_fence<R2: Fence>(self, fence: R2) -> Builder<T, I, R2, H, S, P>
Add Remote Fence extension to RustSBI
sourcepub fn with_hsm<H2: Hsm>(self, hsm: H2) -> Builder<T, I, R, H2, S, P>
pub fn with_hsm<H2: Hsm>(self, hsm: H2) -> Builder<T, I, R, H2, S, P>
Add Hart State Monitor extension to RustSBI
sourcepub fn with_reset<S2: Reset>(self, reset: S2) -> Builder<T, I, R, H, S2, P>
pub fn with_reset<S2: Reset>(self, reset: S2) -> Builder<T, I, R, H, S2, P>
Add System Reset extension to RustSBI