all: split reusable components into workspace crates
This commit is contained in:
parent
2a079ed800
commit
657e7ce2f7
225 changed files with 7422 additions and 17602 deletions
|
|
@ -3,18 +3,17 @@ use {
|
|||
client::Client,
|
||||
criteria::{RootMatcherMap, clm::RootMatchers, crit_graph::CritRootCriterion},
|
||||
},
|
||||
std::rc::Rc,
|
||||
uapi::c,
|
||||
};
|
||||
|
||||
pub struct ClmMatchPid(pub c::pid_t);
|
||||
|
||||
impl CritRootCriterion<Rc<Client>> for ClmMatchPid {
|
||||
fn matches(&self, data: &Rc<Client>) -> bool {
|
||||
impl CritRootCriterion<Client> for ClmMatchPid {
|
||||
fn matches(&self, data: &Client) -> bool {
|
||||
data.pid_info.pid == self.0
|
||||
}
|
||||
|
||||
fn nodes(roots: &RootMatchers) -> Option<&RootMatcherMap<Rc<Client>, Self>> {
|
||||
fn nodes(roots: &RootMatchers) -> Option<&RootMatcherMap<Client, Self>> {
|
||||
Some(&roots.pid)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue