sel4_async_block_io

Trait ConstantBlockSize

Source
pub trait ConstantBlockSize: BlockSize {
    const BLOCK_SIZE: Self;
    const BYTES: usize;
}

Required Associated Constants§

Source

const BLOCK_SIZE: Self

Source

const BYTES: usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ConstantBlockSize for BlockSize512

Source§

const BLOCK_SIZE: Self = BlockSize512

Source§

const BYTES: usize = 512usize

Source§

impl ConstantBlockSize for BlockSize1024

Source§

const BLOCK_SIZE: Self = BlockSize1024

Source§

const BYTES: usize = 1_024usize

Source§

impl ConstantBlockSize for BlockSize2048

Source§

const BLOCK_SIZE: Self = BlockSize2048

Source§

const BYTES: usize = 2_048usize

Source§

impl ConstantBlockSize for BlockSize4096

Source§

const BLOCK_SIZE: Self = BlockSize4096

Source§

const BYTES: usize = 4_096usize

Source§

impl ConstantBlockSize for BlockSize8192

Source§

const BLOCK_SIZE: Self = BlockSize8192

Source§

const BYTES: usize = 8_192usize