Struct syslogio::SyslogUnix
source · [−]pub struct SyslogUnix<'b> { /* private fields */ }
Implementations
sourceimpl<'b> SyslogUnix<'b>
impl<'b> SyslogUnix<'b>
pub fn new(
buf: &'b mut [u8],
path: impl Into<PathBuf>
) -> PResult<SyslogUnix<'b>>
pub fn close(self) -> Result<(), IoError>
pub fn datagram(
&mut self,
syslog: &SyslogHeader<'_>,
timestamp_rfc3339: bool
) -> Result<SyslogDatagram<'_>, IoError>
pub fn with_datagram_send<O>(
&mut self,
syslog: &SyslogHeader<'_>,
timestamp_rfc3339: bool,
f: impl FnOnce(&mut SyslogDatagram<'_>) -> PResult<O>
) -> PResult<O>
pub fn send(&mut self, datagram_len: usize) -> Result<usize, IoError>
Trait Implementations
Auto Trait Implementations
impl<'b> RefUnwindSafe for SyslogUnix<'b>
impl<'b> Send for SyslogUnix<'b>
impl<'b> Sync for SyslogUnix<'b>
impl<'b> Unpin for SyslogUnix<'b>
impl<'b> !UnwindSafe for SyslogUnix<'b>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more