Trait foxbox_taxonomy::selector::ServiceLike
[−]
[src]
pub trait ServiceLike {
fn id(&self) -> &Id<ServiceId>;
fn adapter(&self) -> &Id<AdapterId>;
fn with_tags<F>(&self, f: F) -> bool where F: Fn(&HashSet<Id<TagId>>) -> bool;
fn has_getters<F>(&self, f: F) -> bool where F: Fn(&Channel<Getter>) -> bool;
fn has_setters<F>(&self, f: F) -> bool where F: Fn(&Channel<Setter>) -> bool;
}A trait used to let ServiceSelector work on complex data structures that are not necessarily exactly Selector.
Required Methods
fn id(&self) -> &Id<ServiceId>
fn adapter(&self) -> &Id<AdapterId>
fn with_tags<F>(&self, f: F) -> bool where F: Fn(&HashSet<Id<TagId>>) -> bool
fn has_getters<F>(&self, f: F) -> bool where F: Fn(&Channel<Getter>) -> bool
fn has_setters<F>(&self, f: F) -> bool where F: Fn(&Channel<Setter>) -> bool
Implementors
impl ServiceLike for Service