Struct remote_block_device::BlockFifoResponse
source · pub struct BlockFifoResponse {
pub status: i32,
pub reqid: u32,
pub group: u16,
pub padding_to_satisfy_zerocopy: u16,
pub count: u32,
pub padding_to_match_request_size_and_alignment: [u64; 3],
}
Fields§
§status: i32
§reqid: u32
§group: u16
Only valid if transmitted in request.
padding_to_satisfy_zerocopy: u16
§count: u32
The number of messages in the transaction completed by the block server.
padding_to_match_request_size_and_alignment: [u64; 3]
Trait Implementations§
source§impl AsBytes for BlockFifoResponsewhere
i32: AsBytes,
u32: AsBytes,
u16: AsBytes,
[u64; 3]: AsBytes,
HasPadding<BlockFifoResponse, fidl_fuchsia_hardware_block_driver::::{impl#102}::{constant#1}>: ShouldBe<false>,
impl AsBytes for BlockFifoResponsewhere i32: AsBytes, u32: AsBytes, u16: AsBytes, [u64; 3]: AsBytes, HasPadding<BlockFifoResponse, fidl_fuchsia_hardware_block_driver::::{impl#102}::{constant#1}>: 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 BlockFifoResponse
impl Clone for BlockFifoResponse
source§fn clone(&self) -> BlockFifoResponse
fn clone(&self) -> BlockFifoResponse
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 BlockFifoResponse
impl Debug for BlockFifoResponse
source§impl Decode<BlockFifoResponse> for BlockFifoResponse
impl Decode<BlockFifoResponse> for BlockFifoResponse
source§fn new_empty() -> BlockFifoResponse
fn new_empty() -> BlockFifoResponse
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.source§impl Encode<BlockFifoResponse> for &BlockFifoResponse
impl Encode<BlockFifoResponse> for &BlockFifoResponse
source§impl FromBytes for BlockFifoResponsewhere
i32: FromBytes,
u32: FromBytes,
u16: FromBytes,
[u64; 3]: FromBytes,
impl FromBytes for BlockFifoResponsewhere i32: FromBytes, u32: FromBytes, u16: FromBytes, [u64; 3]: 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 BlockFifoResponse
impl Hash for BlockFifoResponse
source§impl Ord for BlockFifoResponse
impl Ord for BlockFifoResponse
source§fn cmp(&self, other: &BlockFifoResponse) -> Ordering
fn cmp(&self, other: &BlockFifoResponse) -> 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<BlockFifoResponse> for BlockFifoResponse
impl PartialEq<BlockFifoResponse> for BlockFifoResponse
source§fn eq(&self, other: &BlockFifoResponse) -> bool
fn eq(&self, other: &BlockFifoResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BlockFifoResponse> for BlockFifoResponse
impl PartialOrd<BlockFifoResponse> for BlockFifoResponse
source§fn partial_cmp(&self, other: &BlockFifoResponse) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockFifoResponse) -> 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 BlockFifoResponse
impl TypeMarker for BlockFifoResponse
§type Owned = BlockFifoResponse
type Owned = BlockFifoResponse
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 BlockFifoResponse
impl ValueTypeMarker for BlockFifoResponse
§type Borrowed = &'a <BlockFifoResponse as TypeMarker>::Owned
type Borrowed = &'a <BlockFifoResponse 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 <BlockFifoResponse as TypeMarker>::Owned
) -> <BlockFifoResponse as ValueTypeMarker>::Borrowed<'a>
fn borrow<'a>( value: &'a <BlockFifoResponse as TypeMarker>::Owned ) -> <BlockFifoResponse as ValueTypeMarker>::Borrowed<'a>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.