pub struct SyncDriver;Expand description
Single-threaded pipeline driver.
Implementations§
Source§impl SyncDriver
impl SyncDriver
Sourcepub fn run<S>(self, pipeline: Pipeline<S>) -> Result<RunStats>
pub fn run<S>(self, pipeline: Pipeline<S>) -> Result<RunStats>
Drive a pipeline to completion on the calling thread.
This inherent method carries a looser bound than the
Driver trait impl: the source and its item/error types do
not need to be Send. Use this method directly when the
pipeline cannot satisfy Send (for example, a source holding
an Rc). When the Send bounds hold, the trait impl and the
inherent method behave identically.
§Errors
Returns the first error produced by the source, any stage, or the sink.
Trait Implementations§
Source§impl Clone for SyncDriver
impl Clone for SyncDriver
Source§fn clone(&self) -> SyncDriver
fn clone(&self) -> SyncDriver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncDriver
impl Debug for SyncDriver
Source§impl Default for SyncDriver
impl Default for SyncDriver
Source§fn default() -> SyncDriver
fn default() -> SyncDriver
Returns the “default value” for a type. Read more
Source§impl Driver for SyncDriver
impl Driver for SyncDriver
impl Copy for SyncDriver
Auto Trait Implementations§
impl Freeze for SyncDriver
impl RefUnwindSafe for SyncDriver
impl Send for SyncDriver
impl Sync for SyncDriver
impl Unpin for SyncDriver
impl UnsafeUnpin for SyncDriver
impl UnwindSafe for SyncDriver
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