pub struct SelectorKey {
pub kind: u8,
pub number: u32,
pub generation: u16,
}Expand description
A selector key: an observation kind, its number, and its generation.
Ordering is lexicographic by (kind, number, generation), which is the
canonical index order.
Fields§
§kind: u8SEL_PAGE, SEL_OBJECT, SEL_STREAM, SEL_STREAM_DECODED,
SEL_REVISION, SEL_RESOURCE, SEL_PACKAGE_MEMBER_RAW,
SEL_PACKAGE_MEMBER_DECODED, or SEL_OPC_MODEL.
number: u32The page/object/stream/revision/resource number, or a package member’s central-directory ordinal.
generation: u16The generation (0 where the kind has none).
Implementations§
Trait Implementations§
Source§impl Clone for SelectorKey
impl Clone for SelectorKey
impl Copy for SelectorKey
Source§impl Debug for SelectorKey
impl Debug for SelectorKey
impl Eq for SelectorKey
Source§impl Ord for SelectorKey
impl Ord for SelectorKey
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SelectorKey
impl PartialEq for SelectorKey
Source§impl PartialOrd for SelectorKey
impl PartialOrd for SelectorKey
impl StructuralPartialEq for SelectorKey
Auto Trait Implementations§
impl Freeze for SelectorKey
impl RefUnwindSafe for SelectorKey
impl Send for SelectorKey
impl Sync for SelectorKey
impl Unpin for SelectorKey
impl UnsafeUnpin for SelectorKey
impl UnwindSafe for SelectorKey
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