Skip to main content

Entry

Trait Entry 

Source
pub trait Entry: Sized {
    type Id: Copy + Eq;
    type Echo: Copy + Eq + Into<usize>;
    type File: Id;
    type Family: Copy + Eq;
    type Call: Copy;

    // Required methods
    fn id(&self) -> Self::Id;
    fn echo(&self) -> Self::Echo;
    fn file(&self) -> Self::File;
    fn index(&self) -> u32;
    fn family(&self) -> Self::Family;
    fn operation(&self) -> Self::Call;
    fn key(id: Self::Id) -> usize;
}
Expand description

A registered read retaining its operation identity and physical file slot. Identity, file, index, family, and numeric key conversions remain unchanged while registered.

Required Associated Types§

Source

type Id: Copy + Eq

Source

type Echo: Copy + Eq + Into<usize>

Numeric conversion equals key(id()) for this entry’s echo.

Source

type File: Id

Source

type Family: Copy + Eq

Source

type Call: Copy

Required Methods§

Source

fn id(&self) -> Self::Id

Source

fn echo(&self) -> Self::Echo

Source

fn file(&self) -> Self::File

Source

fn index(&self) -> u32

Source

fn family(&self) -> Self::Family

Source

fn operation(&self) -> Self::Call

Source

fn key(id: Self::Id) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§