Struct spirit::fragment::driver::SilentOnceDriver [−][src]
pub struct SilentOnceDriver { /* fields omitted */ }
Expand description
A driver that initializes just once, but unlike OnceDriver
is silent about changed
configurations.
This may be used for early but incomplete initialization of some global resource. It would then be paired with a pipeline doing a full load later in the chain (one such example might be initializing logging but without the background thread before daemonization, and doing full logging with background thread afterwards).
See the example in the daemonization chapter.
Trait Implementations
type SubFragment = F
type SubFragment = F
fn instructions<T, I>(
&mut self,
fragment: &F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<AnyError>> where
T: Transformation<<Self::SubFragment as Fragment>::Resource, I, Self::SubFragment>,
fn instructions<T, I>(
&mut self,
fragment: &F,
transform: &mut T,
name: &'static str
) -> Result<Vec<Instruction<T::OutputResource>>, Vec<AnyError>> where
T: Transformation<<Self::SubFragment as Fragment>::Resource, I, Self::SubFragment>,
Issues the instructions how to transition to the new fragment. Read more
Call to this method informs the Driver
that the instructions returned by the last call
to instructions
were followed and the changes have taken place. Read more
Call to this method informs the Driver
that the instructions returned by the last call
to instructions
were not followed and were dropped. Read more