pub struct ChainLayout { /* private fields */ }Expand description
Validated counts and byte totals for one flattened descriptor chain.
Implementations§
Source§impl ChainLayout
impl ChainLayout
Sourcepub const fn descriptor_count(self) -> u16
pub const fn descriptor_count(self) -> u16
Total flattened descriptor count.
Sourcepub const fn readable_descriptors(self) -> u16
pub const fn readable_descriptors(self) -> u16
Number of device-readable descriptors.
Sourcepub const fn writable_descriptors(self) -> u16
pub const fn writable_descriptors(self) -> u16
Number of device-writable descriptors.
Sourcepub const fn readable_bytes(self) -> u64
pub const fn readable_bytes(self) -> u64
Total device-readable bytes.
Sourcepub const fn writable_bytes(self) -> u64
pub const fn writable_bytes(self) -> u64
Total device-writable bytes.
Sourcepub const fn validate_port_lengths(
self,
request_bytes: u64,
response_bytes: u64,
) -> Result<(), ChainLayoutError>
pub const fn validate_port_lengths( self, request_bytes: u64, response_bytes: u64, ) -> Result<(), ChainLayoutError>
Validate mapped byte-port lengths against this layout.
Trait Implementations§
Source§impl Clone for ChainLayout
impl Clone for ChainLayout
Source§fn clone(&self) -> ChainLayout
fn clone(&self) -> ChainLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChainLayout
Source§impl Debug for ChainLayout
impl Debug for ChainLayout
impl Eq for ChainLayout
Source§impl PartialEq for ChainLayout
impl PartialEq for ChainLayout
impl StructuralPartialEq for ChainLayout
Auto Trait Implementations§
impl Freeze for ChainLayout
impl RefUnwindSafe for ChainLayout
impl Send for ChainLayout
impl Sync for ChainLayout
impl Unpin for ChainLayout
impl UnsafeUnpin for ChainLayout
impl UnwindSafe for ChainLayout
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