Crate block_client

Source
Expand description

A Rust client library for the Fuchsia block protocol.

This crate provides a low-level client for interacting with block devices over the fuchsia.hardware.block FIDL protocol and the FIFO interface for block I/O.

See the BlockClient trait.

Re-exports§

pub use cache::Cache;

Modules§

cache

Structs§

BlockFifoCommand
BlockFifoRequest
BlockFifoResponse
BlockFlags
BlockIoFlag
RemoteBlockClient
RemoteBlockClient is a BlockClient that communicates with a real block device over FIDL.
RemoteBlockClientSync
VmoId
Wraps a vmo-id. Will panic if you forget to detach.
WriteOptions
Options that may be used for writes.

Enums§

BlockOpcode
BufferSlice
MutableBufferSlice

Constants§

NO_TRACE_ID
If a trace flow ID isn’t specified for requests, one will be generated.

Traits§

AsBlockProxy
BlockClient
Represents a client connection to a block device. This is a simplified version of the block.fidl interface. Most users will use the RemoteBlockClient instantiation of this trait.

Type Aliases§

block_fifo_command_t
groupid_t
reqid_t
vmoid_t
zx_status_t