pub struct SyQueued<S = DefaultQueueAdapter, F = DefaultSyslogFormatter, D = DefaultLocalSyslogDestination>{ /* private fields */ }Expand description
A queued syslog client which uses a separate thread to send messages to upstream.
§Generics
-
F- a syslog message formatter. See dirsrc/formattersfor available or define one yourself. A default is DefaultSyslogFormatter. -
D- a destination server/file. See filesrc/syslog_provider.rsfor available transports. A default is DefaultLocalSyslogDestination. -
S- a queue mechanism. A default is DefaultLocalSyslogDestination. If you don’t need any special queue mechanism, use the default.
Trait Implementations§
Source§impl<S, F, D> Clone for SyQueued<S, F, D>where
F: SyslogFormatter + Clone,
D: SyslogDestination + Clone,
S: SyslogQueueChannel<F, D> + Clone,
S::ChannelSnd: Clone,
impl<S, F, D> Clone for SyQueued<S, F, D>where
F: SyslogFormatter + Clone,
D: SyslogDestination + Clone,
S: SyslogQueueChannel<F, D> + Clone,
S::ChannelSnd: Clone,
Source§impl<S, F, D> Debug for SyQueued<S, F, D>where
F: SyslogFormatter + Debug,
D: SyslogDestination + Debug,
S: SyslogQueueChannel<F, D> + Debug,
S::ChannelSnd: Debug,
impl<S, F, D> Debug for SyQueued<S, F, D>where
F: SyslogFormatter + Debug,
D: SyslogDestination + Debug,
S: SyslogQueueChannel<F, D> + Debug,
S::ChannelSnd: Debug,
impl<F, D, S> Send for SyQueued<S, F, D>
Source§impl<F, DD, S> SyslogType for SyQueued<S, F, DD>
impl<F, DD, S> SyslogType for SyQueued<S, F, DD>
type LockItemsBase = ()
type LockItems = <SyQueued<S, F, DD> as SyslogType>::LockItemsBase
type LockStreamBase<D: SyslogDestination> = SyQueued<S, F, DD>
type LockStream<D: SyslogDestination> = <SyQueued<S, F, DD> as SyslogType>::LockStreamBase<D>
type MoveLockType = PhantomData<()>
fn wrap_items(items: Self::LockItemsBase) -> Self::LockItems
fn wrap_stream<D: SyslogDestination>( stream: Self::LockStreamBase<D>, ) -> Self::LockStream<D>
Auto Trait Implementations§
impl<S, F, D> Freeze for SyQueued<S, F, D>
impl<S, F, D> RefUnwindSafe for SyQueued<S, F, D>
impl<S, F, D> Sync for SyQueued<S, F, D>
impl<S, F, D> Unpin for SyQueued<S, F, D>
impl<S, F, D> UnsafeUnpin for SyQueued<S, F, D>
impl<S, F, D> UnwindSafe for SyQueued<S, F, D>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more