Crate block_client

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§

BlockDeviceFlag
BlockFifoCommand
BlockFifoRequest
BlockFifoResponse
BlockIoFlag
Flags which may be attached to FIFO requests.
InlineCryptoOptions
ReadOptions
RemoteBlockClient
RemoteBlockClientSync
VmoId
Wraps a vmo-id. Will panic if you forget to detach.
WriteFlags
Options that may be used for writes.
WriteOptions

Enums§

BlockOpcode
The opcode used in FIFO requests.
BufferSlice
MutableBufferSlice

Constants§

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

Traits§

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§

groupid_t
reqid_t
vmoid_t
zx_status_t