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 &Syslog<F, D, SyQueued<S, F, D>>

Source§

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

Source§

impl<F, D> SyStreamSyslogApi<F, D> for &mut Syslog<F, D, SyThreadLocal>

Source§

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

Source§

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

Source§

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