You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ping_server.rs
    path of file: ./repos/CYFS/src/component/cyfs-stack/src/sync/server
    
    the code of the file until where you have to start completion: use super::super::protocol::*;
use super::zone_state::ZoneStateManager;
use crate::zone::ZoneRoleManager;
use cyfs_base::*;
use cyfs_debug::Mutex;
use cyfs_lib::ZoneRole;

use std::collections::HashMap;
use
    
    fn check_timeout(&self) {
        let list = self.state.lock().unwrap().check_timeout();

        for (device_id, _state) in list {
            match self.zone_state.get_zone_device_state(&device_id) {
                Some(device_state) => {
                    let req = SyncPingRequest {
                        device_id,
                        zone_role: device_state.zone_role,
                        root_state: device_state.root_state,
                        root_state_revision: device_state.root_state_revision,
                        state: DeviceSyncState::Offline,
                        owner_update_time: 0,
                    };

                    let _r = self.zone_state.device_offline(&req);
                }
                None => {
                    error!(
                        "device ping timeout offline but not found in device list: {}",
                        device_id
                    );
                }
            }
        }
    }