Struct remote_block_device::BlockFifoRequest
source · pub struct BlockFifoRequest {
pub opcode: u32,
pub reqid: u32,
pub group: u16,
pub vmoid: u16,
pub length: u32,
pub vmo_offset: u64,
pub dev_offset: u64,
pub trace_flow_id: u64,
}
Fields§
§opcode: u32
§reqid: u32
Transmitted in the block_fifo_response_t
.
group: u16
Only used if opcode & BLOCK_GROUP_ITEM
.
vmoid: u16
§length: u32
§vmo_offset: u64
§dev_offset: u64
§trace_flow_id: u64
Trait Implementations§
source§impl AsBytes for BlockFifoRequestwhere
u32: AsBytes,
u16: AsBytes,
u64: AsBytes,
HasPadding<BlockFifoRequest, fidl_fuchsia_hardware_block_driver::::{impl#85}::{constant#0}>: ShouldBe<false>,
impl AsBytes for BlockFifoRequestwhere u32: AsBytes, u16: AsBytes, u64: AsBytes, HasPadding<BlockFifoRequest, fidl_fuchsia_hardware_block_driver::::{impl#85}::{constant#0}>: ShouldBe<false>,
§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘwhere Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Clone for BlockFifoRequest
impl Clone for BlockFifoRequest
source§fn clone(&self) -> BlockFifoRequest
fn clone(&self) -> BlockFifoRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BlockFifoRequest
impl Debug for BlockFifoRequest
source§impl Decode<BlockFifoRequest> for BlockFifoRequest
impl Decode<BlockFifoRequest> for BlockFifoRequest
source§fn new_empty() -> BlockFifoRequest
fn new_empty() -> BlockFifoRequest
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.source§impl Encode<BlockFifoRequest> for &BlockFifoRequest
impl Encode<BlockFifoRequest> for &BlockFifoRequest
source§impl FromBytes for BlockFifoRequestwhere
u32: FromBytes,
u16: FromBytes,
u64: FromBytes,
impl FromBytes for BlockFifoRequestwhere u32: FromBytes, u16: FromBytes, u64: FromBytes,
§fn read_from_prefix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_prefix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn read_from_suffix<B>(bytes: B) -> Option<Self>where
B: ByteSlice,
Self: Sized,
fn read_from_suffix<B>(bytes: B) -> Option<Self>where B: ByteSlice, Self: Sized,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self
from zeroed bytes.source§impl Hash for BlockFifoRequest
impl Hash for BlockFifoRequest
source§impl Ord for BlockFifoRequest
impl Ord for BlockFifoRequest
source§fn cmp(&self, other: &BlockFifoRequest) -> Ordering
fn cmp(&self, other: &BlockFifoRequest) -> Ordering
1.21.0 · 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
source§impl PartialEq<BlockFifoRequest> for BlockFifoRequest
impl PartialEq<BlockFifoRequest> for BlockFifoRequest
source§fn eq(&self, other: &BlockFifoRequest) -> bool
fn eq(&self, other: &BlockFifoRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BlockFifoRequest> for BlockFifoRequest
impl PartialOrd<BlockFifoRequest> for BlockFifoRequest
source§fn partial_cmp(&self, other: &BlockFifoRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockFifoRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for BlockFifoRequest
impl TypeMarker for BlockFifoRequest
§type Owned = BlockFifoRequest
type Owned = BlockFifoRequest
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for BlockFifoRequest
impl ValueTypeMarker for BlockFifoRequest
§type Borrowed = &'a <BlockFifoRequest as TypeMarker>::Owned
type Borrowed = &'a <BlockFifoRequest as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moresource§fn borrow<'a>(
value: &'a <BlockFifoRequest as TypeMarker>::Owned
) -> <BlockFifoRequest as ValueTypeMarker>::Borrowed<'a>
fn borrow<'a>( value: &'a <BlockFifoRequest as TypeMarker>::Owned ) -> <BlockFifoRequest as ValueTypeMarker>::Borrowed<'a>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.