[][src]Struct yy_boss::PipelineManager

pub struct PipelineManager { /* fields omitted */ }

Implementations

impl PipelineManager[src]

pub fn pipelines(&self) -> &BTreeMap<String, Pipeline>[src]

Returns a map of all the pipelines currently known.

pub fn pipeline(&self, pipeline_name: impl Into<String>) -> Option<&Pipeline>[src]

Returns a specific pipeline by name, if it exists.

pub fn pipeline_destinations(
    &self,
    pipeline_name: impl Into<String>,
    source_name: impl Into<String>
) -> Option<&PipelineDesinations>
[src]

Gets all of the destinations for a given source within a given pipeline, if both the pipeline and a source within that pipeline exist.

pub fn add_pipeline(
    &mut self,
    name: impl Into<String>,
    sf: SerializationFormat
) -> Result<(), PipelineError>
[src]

Creates a pipeline. If a pipeline of that name already exists, an error is returned.

pub fn set_pipeline_serialization(
    &mut self,
    name: impl Into<String>,
    sf: SerializationFormat
) -> Result<(), PipelineError>
[src]

Changes the pipeline serialization format on a given pipeline.

If the pipeline doesn't exist, an error is returned.

pub fn add_source_to_pipeline(
    &mut self,
    pipeline_name: impl Into<String>,
    source_name: impl Into<String>
) -> Result<(), PipelineError>
[src]

Adds a source to a given pipeline.

If a pipeline doesn't exist, an error is returned.

pub fn add_destination_to_source<S: Into<String>>(
    &mut self,
    pipeline_name: S,
    source_name: S,
    destination_key: S,
    destination_value: FilesystemPath
) -> Result<(), PipelineError>
[src]

Adds a destination to a given source on a given pipeline.

If the pipeline doesn't exist or the source doesn't exist on the pipeline, an error is returned.

pub fn add_destination_to_source_rf<S: Into<String>>(
    &mut self,
    pipeline_name: S,
    source_name: S,
    destination_key: S,
    destination_value: FilesystemPath
)
[src]

Adds a destination to a given source on a given pipeline.

If any elements do not exist, they will be created. If a destination exists on a source/pipeline which already exists, it will be replaced and lost.

pub fn remove_pipeline(
    &mut self,
    pipeline_name: impl Into<String>
) -> Result<(), PipelineError>
[src]

Removes a given pipeline from the manager. If any sources are on the pipeline, they will be lost permanently!

If the pipeline does not exist, an error is returned.

pub fn remove_source_from_pipeline(
    &mut self,
    pipeline_name: impl Into<String>,
    source_name: impl Into<String>
) -> Result<(), PipelineError>
[src]

Removes a given source from a pipeline. If any destinations are in the source, it will be lost permanently!

If the pipeline does not exist, or if the source does not exist on the pipeline, an error is returned.

pub fn remove_destination_from_source(
    &mut self,
    pipeline_name: impl Into<String>,
    source_name: impl Into<String>,
    destination_name: &str
) -> Result<(), PipelineError>
[src]

Removes a given destination from a source.

If the pipeline does not exist, or if the source does not exist on the pipeline, or if the destination does not exist on the source, an error is returned.

Trait Implementations

impl Clone for PipelineManager[src]

impl Debug for PipelineManager[src]

impl Default for PipelineManager[src]

impl Eq for PipelineManager[src]

impl PartialEq<PipelineManager> for PipelineManager[src]

impl StructuralEq for PipelineManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,