blob: 542b892e7ca6cae2ed8c3fc07edfc00408f5ed6f [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {super::model::DataModel, anyhow::Result, std::sync::Arc};
/// The `DataCollector` trait is responsible for populating the `DataModel.`
pub trait DataCollector: Send + Sync {
fn collect(&self, model: Arc<DataModel>) -> Result<()>;
}