Skip to main content

Routable

Trait Routable 

Source
pub trait Routable {
    // Required methods
    fn dst_addr(&self) -> u64;
    fn src_addr(&self) -> u64;
    fn access_type(&self) -> AccessType;

    // Provided methods
    fn dst_device(&self) -> DeviceId { ... }
    fn src_device(&self) -> DeviceId { ... }
}
Expand description

The Routable trait provides an interface to an object to enable it to be routed

Required Methods§

Source

fn dst_addr(&self) -> u64

Source

fn src_addr(&self) -> u64

Source

fn access_type(&self) -> AccessType

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Routable for i32

Source§

impl Routable for usize

Implementors§