Trait syslog_rs::a_sync::syslog_trait::SyslogExt
source · pub trait SyslogExt {
fn openlog_custom<'life0, 'async_trait, P>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>
where
Self: Sized + 'async_trait,
P: 'async_trait + AsRef<Path> + Send,
'life0: 'async_trait;
fn change_identity<'life0, 'async_trait, I>(
&'life0 self,
ident: I
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where
I: 'async_trait + AsRef<str> + Send,
Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
sourcefn openlog_custom<'life0, 'async_trait, P>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
P: 'async_trait + AsRef<Path> + Send,
'life0: 'async_trait,
fn openlog_custom<'life0, 'async_trait, P>(
ident: Option<&'life0 str>,
logstat: LogStat,
facility: LogFacility,
sock_path: P
) -> Pin<Box<dyn Future<Output = SyRes<Self>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
P: 'async_trait + AsRef<Path> + Send,
'life0: 'async_trait,
Creates new instance and attempts to connect to provided path