pub struct Driver<E, DP, P>where
E: Executor + Send + Sync + Debug,
DP: DriverPipeline<P> + Send + Sync + Debug,
P: Pipeline + SignalReceiver + Send + Sync + Debug,{
pub pipeline: DP,
pub cursor: PipelineCursor,
pub executor: E,
/* private fields */
}Expand description
The Rollup Driver entrypoint.
Fields§
§pipeline: DPA pipeline abstraction.
cursor: PipelineCursorCursor to keep track of the L2 tip
executor: EThe Executor.
Implementations§
Source§impl<E, DP, P> Driver<E, DP, P>
impl<E, DP, P> Driver<E, DP, P>
Sourcepub const fn new(cursor: PipelineCursor, executor: E, pipeline: DP) -> Self
pub const fn new(cursor: PipelineCursor, executor: E, pipeline: DP) -> Self
Creates a new Driver.
Sourcepub async fn wait_for_executor(&mut self)
pub async fn wait_for_executor(&mut self)
Waits until the executor is ready.
Sourcepub async fn advance_to_target(
&mut self,
cfg: &RollupConfig,
target: Option<u64>,
) -> DriverResult<(u64, B256), E::Error>
pub async fn advance_to_target( &mut self, cfg: &RollupConfig, target: Option<u64>, ) -> DriverResult<(u64, B256), E::Error>
Trait Implementations§
Auto Trait Implementations§
impl<E, DP, P> Freeze for Driver<E, DP, P>
impl<E, DP, P> RefUnwindSafe for Driver<E, DP, P>
impl<E, DP, P> Send for Driver<E, DP, P>
impl<E, DP, P> Sync for Driver<E, DP, P>
impl<E, DP, P> Unpin for Driver<E, DP, P>
impl<E, DP, P> UnwindSafe for Driver<E, DP, P>
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