pub struct log_service_t { /* private fields */ }Expand description
log service should be create only once in any system
Implementations§
Source§impl log_service_t
impl log_service_t
pub fn new(conf: &log_service_config_t) -> Option<log_service_t>
pub fn openLogFile(&mut self) -> RESULT
pub fn GetLogFilePath(&self) -> String
pub fn set_syslog_addr(&mut self, addr: &SocketAddr) -> RESULT
pub fn recvLog(&mut self)
pub fn RegisterListener( &mut self, name: &String, listener: &'static mut dyn LogListener, ) -> RESULT
pub fn DeregisterListener(&mut self, name: &String) -> RESULT
pub fn PrintLogServiceStats(&self)
Auto Trait Implementations§
impl !Freeze for log_service_t
impl !RefUnwindSafe for log_service_t
impl !Send for log_service_t
impl !Sync for log_service_t
impl Unpin for log_service_t
impl !UnwindSafe for log_service_t
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