Skip to main content

SyStreamSyslogApi

Trait SyStreamSyslogApi 

Source
pub trait SyStreamSyslogApi<F: SyslogFormatter, D: SyslogDestination> {
    type SYSLOG<'t>;

    // Required method
    fn syslog<'t>(syslog: Self::SYSLOG<'t>, pri: Priority, fmt: F) -> SyRes<()>;
}
Expand description

A limited version of SyslogApi which implements only necessary things for streaming.

Required Associated Types§

Source

type SYSLOG<'t>

A type which declared wither syslog instance can be mutable or not.

Required Methods§

Source

fn syslog<'t>(syslog: Self::SYSLOG<'t>, pri: Priority, fmt: F) -> SyRes<()>

Sends message to syslog server over channel.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, D, S> SyStreamSyslogApi<F, D> for &QueuedSyslog<S, F, D>

Source§

type SYSLOG<'t> = &'t QueuedSyslog<S, F, D>

Source§

impl<F: SyslogFormatter, D: SyslogDestination> SyStreamSyslogApi<F, D> for &SyncSyslog<F, D>

Source§

type SYSLOG<'t> = &'t SyncSyslog<F, D>

Source§

impl<F: SyslogFormatter, D: SyslogDestination> SyStreamSyslogApi<F, D> for &mut SingleSyslog<F, D>

Source§

type SYSLOG<'t> = &'t mut SingleSyslog<F, D>