fn sd_notify(state: &[NotifyState]) {
    match notify(false, state) {
        Err(e) => log::error!(
            "failed to notify service manager of service status change: {}",
            e
        ),
        Ok(sent) => {
            if !sent {
                log::error!("status notifications not supported for this service");
            }
        }
    }
}
/// Helper function to send notifications to the service manager about service status changes.
/// Log errors if unsuccessful.
Helper function to send notifications to the service manager about service status changes.
Log errors if unsuccessful.
Helper function to send notifications to the service manager about service status changes . Log errors if unsuccessful .
fn sd_notify(state: &[NotifyState]) {
    match notify(false, state) {
        Err(e) => log::error!(
            "failed to notify service manager of service status change: {}",
            e
        ),
        Ok(sent) => {
            if !sent {
                log::error!("status notifications not supported for this service");
            }
        }
    }
}
fn sd_notify ( state : & [ NotifyState ] ) { match notify ( false , state ) { Err ( e ) => log :: error ! ( " " e ) , Ok ( sent ) => { if ! sent { log :: error ! ( " " ) ; } } } }
Helper function to send notifications to the service manager about service status changes.
Helper function to send notifications to the service manager about service status changes .
state
&[NotifyState]