pub enum DirectionSpec {
SourceToSink,
SinkToSource,
Both,
}Expand description
Which path(s) a declared plugin applies to.
The default is DirectionSpec::SourceToSink, so an entry with no
direction is on the forward path only. DirectionSpec::Both means that,
on request: the plugin is instantiated twice, once per direction, rather
than sharing one instance, and the sink-to-source chain is the mirror of the
declaration order so that wrapping stages nest correctly.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DirectionSpec
impl Clone for DirectionSpec
Source§fn clone(&self) -> DirectionSpec
fn clone(&self) -> DirectionSpec
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 moreimpl Copy for DirectionSpec
Source§impl Debug for DirectionSpec
impl Debug for DirectionSpec
Source§impl Default for DirectionSpec
impl Default for DirectionSpec
Source§fn default() -> DirectionSpec
fn default() -> DirectionSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DirectionSpec
Deserialized through FromStr so that a config file accepts exactly what
the command line does.
impl<'de> Deserialize<'de> for DirectionSpec
Deserialized through FromStr so that a config file accepts exactly what
the command line does.
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DirectionSpec
impl Display for DirectionSpec
impl Eq for DirectionSpec
Source§impl FromStr for DirectionSpec
impl FromStr for DirectionSpec
Source§impl Hash for DirectionSpec
impl Hash for DirectionSpec
Source§impl PartialEq for DirectionSpec
impl PartialEq for DirectionSpec
Source§impl Serialize for DirectionSpec
impl Serialize for DirectionSpec
impl StructuralPartialEq for DirectionSpec
Auto Trait Implementations§
impl Freeze for DirectionSpec
impl RefUnwindSafe for DirectionSpec
impl Send for DirectionSpec
impl Sync for DirectionSpec
impl Unpin for DirectionSpec
impl UnsafeUnpin for DirectionSpec
impl UnwindSafe for DirectionSpec
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