Enum aldrin_core::BusListenerScope
source · #[repr(u8)]pub enum BusListenerScope {
Current = 0,
New = 1,
All = 2,
}
Variants§
Implementations§
source§impl BusListenerScope
impl BusListenerScope
pub fn includes_current(self) -> bool
pub fn includes_new(self) -> bool
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for BusListenerScope
impl<'arbitrary> Arbitrary<'arbitrary> for BusListenerScope
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 BusListenerScope
impl Clone for BusListenerScope
source§fn clone(&self) -> BusListenerScope
fn clone(&self) -> BusListenerScope
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 BusListenerScope
impl Debug for BusListenerScope
source§impl From<BusListenerScope> for u8
impl From<BusListenerScope> for u8
source§fn from(enum_value: BusListenerScope) -> Self
fn from(enum_value: BusListenerScope) -> Self
Converts to this type from the input type.
source§impl PartialEq for BusListenerScope
impl PartialEq for BusListenerScope
source§impl TryFrom<u8> for BusListenerScope
impl TryFrom<u8> for BusListenerScope
source§type Error = TryFromPrimitiveError<BusListenerScope>
type Error = TryFromPrimitiveError<BusListenerScope>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BusListenerScope
impl TryFromPrimitive for BusListenerScope
const NAME: &'static str = "BusListenerScope"
type Primitive = u8
type Error = TryFromPrimitiveError<BusListenerScope>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BusListenerScope
impl Eq for BusListenerScope
impl StructuralPartialEq for BusListenerScope
Auto Trait Implementations§
impl Freeze for BusListenerScope
impl RefUnwindSafe for BusListenerScope
impl Send for BusListenerScope
impl Sync for BusListenerScope
impl Unpin for BusListenerScope
impl UnwindSafe for BusListenerScope
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)