Enum aldrin_core::BusListenerFilter
source · pub enum BusListenerFilter {
Object(Option<ObjectUuid>),
Service(BusListenerServiceFilter),
}
Variants§
Object(Option<ObjectUuid>)
Service(BusListenerServiceFilter)
Implementations§
source§impl BusListenerFilter
impl BusListenerFilter
pub fn any_object() -> Self
pub fn object(object: ObjectUuid) -> Self
pub fn service(filter: BusListenerServiceFilter) -> Self
pub fn any_object_any_service() -> Self
pub fn specific_object_any_service(object: ObjectUuid) -> Self
pub fn any_object_specific_service(service: ServiceUuid) -> Self
pub fn specific_object_and_service( object: ObjectUuid, service: ServiceUuid ) -> Self
pub fn matches_object(self, object: ObjectId) -> bool
pub fn matches_service(self, service: ServiceId) -> bool
pub fn matches_event(self, event: BusEvent) -> bool
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for BusListenerFilter
impl<'arbitrary> Arbitrary<'arbitrary> for BusListenerFilter
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for BusListenerFilter
impl Clone for BusListenerFilter
source§fn clone(&self) -> BusListenerFilter
fn clone(&self) -> BusListenerFilter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BusListenerFilter
impl Debug for BusListenerFilter
source§impl From<BusListenerServiceFilter> for BusListenerFilter
impl From<BusListenerServiceFilter> for BusListenerFilter
source§fn from(filter: BusListenerServiceFilter) -> Self
fn from(filter: BusListenerServiceFilter) -> Self
Converts to this type from the input type.
source§impl From<ObjectUuid> for BusListenerFilter
impl From<ObjectUuid> for BusListenerFilter
source§fn from(object: ObjectUuid) -> Self
fn from(object: ObjectUuid) -> Self
Converts to this type from the input type.
source§impl From<Option<ObjectUuid>> for BusListenerFilter
impl From<Option<ObjectUuid>> for BusListenerFilter
source§fn from(object: Option<ObjectUuid>) -> Self
fn from(object: Option<ObjectUuid>) -> Self
Converts to this type from the input type.
source§impl Hash for BusListenerFilter
impl Hash for BusListenerFilter
source§impl Ord for BusListenerFilter
impl Ord for BusListenerFilter
source§fn cmp(&self, other: &BusListenerFilter) -> Ordering
fn cmp(&self, other: &BusListenerFilter) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BusListenerFilter
impl PartialEq for BusListenerFilter
source§fn eq(&self, other: &BusListenerFilter) -> bool
fn eq(&self, other: &BusListenerFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BusListenerFilter
impl PartialOrd for BusListenerFilter
source§fn partial_cmp(&self, other: &BusListenerFilter) -> Option<Ordering>
fn partial_cmp(&self, other: &BusListenerFilter) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for BusListenerFilter
impl Eq for BusListenerFilter
impl StructuralPartialEq for BusListenerFilter
Auto Trait Implementations§
impl Freeze for BusListenerFilter
impl RefUnwindSafe for BusListenerFilter
impl Send for BusListenerFilter
impl Sync for BusListenerFilter
impl Unpin for BusListenerFilter
impl UnwindSafe for BusListenerFilter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more