pub struct SubprocessPlugin;Expand description
The factory a configuration reaches through plugin: subprocess.
Implementations§
Source§impl Plugin
impl Plugin
Sourcepub fn build_from_document(
&self,
name: &SourceName,
config: &Value,
secrets: &dyn SecretResolver,
document_dir: Option<&Path>,
) -> Result<Box<dyn TaskSource>, SourceError>
pub fn build_from_document( &self, name: &SourceName, config: &Value, secrets: &dyn SecretResolver, document_dir: Option<&Path>, ) -> Result<Box<dyn TaskSource>, SourceError>
SourcePlugin::build, telling the child which document supplied its settings.
document_dir is SourceConfig::document_dir:
the engine reaches this rather than the trait method because the trait hands a
plugin values and no origins, and this plugin alone passes an origin on — as
document_dir in the handshake (docs/plugin-protocol.md §3).
§Errors
What SourcePlugin::build returns.
Trait Implementations§
impl Copy for Plugin
Source§impl SourcePlugin for Plugin
impl SourcePlugin for Plugin
Source§fn config_schema(&self) -> Schema
fn config_schema(&self) -> Schema
The JSON Schema for this plugin’s own
config: block.Source§fn build(
&self,
name: &SourceName,
config: &Value,
secrets: &dyn SecretResolver,
) -> Result<Box<dyn TaskSource>, SourceError>
fn build( &self, name: &SourceName, config: &Value, secrets: &dyn SecretResolver, ) -> Result<Box<dyn TaskSource>, SourceError>
Build a live source from one configuration block. Read more
Source§fn build_with_clock(
&self,
name: &SourceName,
config: &Value,
secrets: &dyn SecretResolver,
clock: Arc<dyn Clock>,
) -> Result<Box<dyn TaskSource>, SourceError>
fn build_with_clock( &self, name: &SourceName, config: &Value, secrets: &dyn SecretResolver, clock: Arc<dyn Clock>, ) -> Result<Box<dyn TaskSource>, SourceError>
Build a live source from one configuration block, handing it the clock it paces and
backs off on. Read more
Source§fn document_relative_paths(&self) -> &'static [&'static str]
fn document_relative_paths(&self) -> &'static [&'static str]
The fields of this plugin’s
config: block that name a filesystem path, as dotted
paths into that block. Read moreAuto Trait Implementations§
impl Freeze for Plugin
impl RefUnwindSafe for Plugin
impl Send for Plugin
impl Sync for Plugin
impl Unpin for Plugin
impl UnsafeUnpin for Plugin
impl UnwindSafe for Plugin
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