Trait syslog_rs::a_sync::syslog_trait::SyslogStd
source · pub trait SyslogStd: Send {
fn openlog<'life0, 'async_trait>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>
where
Self: Sized + 'async_trait,
'life0: 'async_trait;
fn setlogmask<'life0, 'async_trait>(
&'life0 self,
logmask: i32
) -> Pin<Box<dyn Future<Output = i32> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn closelog<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn syslog<'life0, 'async_trait>(
&'life0 self,
pri: Priority,
fmt: String
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
Self: 'async_trait,
'life0: 'async_trait;
fn vsyslog<'life0, 'async_trait, S>(
&'life0 self,
pri: Priority,
fmt: S
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
S: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
sourcefn openlog<'life0, 'async_trait>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
fn openlog<'life0, 'async_trait>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
'life0: 'async_trait,
Creates new instance
sourcefn setlogmask<'life0, 'async_trait>(
&'life0 self,
logmask: i32
) -> Pin<Box<dyn Future<Output = i32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn setlogmask<'life0, 'async_trait>(
&'life0 self,
logmask: i32
) -> Pin<Box<dyn Future<Output = i32> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Updates logmask
sourcefn closelog<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn closelog<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Closes connection to the syslog server