GetSinkProp

Trait GetSinkProp 

Source
pub trait GetSinkProp {
    // Required method
    fn prop(&self) -> &SinkProp;
}
Expand description

Represents the getter for the SinkProp inside a sink.

This trait is not mandatory for a sink. It enables a blanket implementation, where a sink that implements this trait will automatically get the SinkPropAccess trait implemented, which eliminates a lot of boilerplate code.

Required Methods§

Source

fn prop(&self) -> &SinkProp

Gets the SinkProp from a sink.

Implementors§

Source§

impl GetSinkProp for AndroidSink

Available on Android and crate feature native and crate feature android-ndk only.
Source§

impl GetSinkProp for DedupSink

Source§

impl GetSinkProp for FileSink

Source§

impl GetSinkProp for JournaldSink

Available on Linux and crate feature native and crate feature libsystemd only.
Source§

impl GetSinkProp for RotatingFileSink

Source§

impl GetSinkProp for StdStreamSink

Source§

impl GetSinkProp for WinDebugSink

Available on Windows and crate feature native only.
Source§

impl<W> GetSinkProp for WriteSink<W>
where W: Write + Send,