Enum ddc_hi::Query
[−]
[src]
pub enum Query {
Any,
Backend(Backend),
Id(String),
ManufacturerId(String),
ModelName(String),
SerialNumber(String),
Or(Vec<Query>),
And(Vec<Query>),
}A query to filter out matching displays.
Most comparisons must match the full string.
Variants
AnyMatches any display
Backend(Backend)Matches a display on the given backend
Id(String)Matches a display with the specified ID
ManufacturerId(String)Matches a display with the specified manufacturer
ModelName(String)Matches a display with the specified model name
SerialNumber(String)Matches a display with the specified serial number
Or(Vec<Query>)At least one of the queries must match
And(Vec<Query>)All of the queries must match
Methods
impl Query[src]
pub fn matches(&self, info: &DisplayInfo) -> bool[src]
Queries whether the provided display info is a match.