pub enum SyCmd<D: SyslogDestination, S: SyslogQueueChannel<D>> {
Syslog {
pri: Priority,
msg: String,
},
Logmask {
logmask: i32,
loopback: S::OneShotChannelSnd<i32>,
},
ChangeIdentity {
identity: String,
},
UpdateTap {
tap_type: D,
loopback: S::OneShotChannelSnd<SyRes<()>>,
},
ConnectLog {
loopback: S::OneShotChannelSnd<SyRes<()>>,
},
DisconnectLog {
loopback: S::OneShotChannelSnd<SyRes<()>>,
},
Reconnect,
Stop,
}
Expand description
A wrapper for the data commands in the queue
Variants§
Syslog
A message to syslog server
Logmask
A reuest to change logmask
ChangeIdentity
A request to change identity
UpdateTap
Updates the tap settings
ConnectLog
Fields
§
loopback: S::OneShotChannelSnd<SyRes<()>>
DisconnectLog
Fields
§
loopback: S::OneShotChannelSnd<SyRes<()>>
Reconnect
A request to rotate file or reconnect.
Stop
A request to stop processing and quit
Auto Trait Implementations§
impl<D, S> Freeze for SyCmd<D, S>where
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<i32>: Freeze,
D: Freeze,
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<Result<(), SyslogError>>: Freeze,
impl<D, S> RefUnwindSafe for SyCmd<D, S>where
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<i32>: RefUnwindSafe,
D: RefUnwindSafe,
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<Result<(), SyslogError>>: RefUnwindSafe,
impl<D, S> Send for SyCmd<D, S>
impl<D, S> Sync for SyCmd<D, S>where
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<i32>: Sync,
D: Sync,
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<Result<(), SyslogError>>: Sync,
impl<D, S> Unpin for SyCmd<D, S>where
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<i32>: Unpin,
D: Unpin,
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<Result<(), SyslogError>>: Unpin,
impl<D, S> UnwindSafe for SyCmd<D, S>where
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<i32>: UnwindSafe,
D: UnwindSafe,
<S as SyslogQueueChannel<D>>::OneShotChannelSnd<Result<(), SyslogError>>: UnwindSafe,
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