#[repr(C)]pub struct fs_ext4_blockdev_cfg_t {
pub read: fs_ext4_read_fn,
pub context: *mut c_void,
pub size_bytes: u64,
pub block_size: u32,
pub write: fs_ext4_write_fn,
pub flush: fs_ext4_flush_fn,
}Expand description
Callback-based mount config (matches fs_ext4_blockdev_cfg_t).
write / flush were appended in v0.1.3 — fs_ext4_mount_with_callbacks
ignores them (still RO), fs_ext4_mount_rw_with_callbacks requires
write to be set.
Fields§
§read: fs_ext4_read_fn§context: *mut c_void§size_bytes: u64§block_size: u32On the mount entry points: the device’s sector size. When it is
greater than 1 the callbacks receive only requests whose offset and
length are multiples of it (see [callback_mount_device]); 0 or 1
passes the engine’s byte-granular requests through unchanged. On
fs_ext4_mkfs it is the filesystem block size to format with.
write: fs_ext4_write_fn§flush: fs_ext4_flush_fnAuto Trait Implementations§
impl !Send for fs_ext4_blockdev_cfg_t
impl !Sync for fs_ext4_blockdev_cfg_t
impl Freeze for fs_ext4_blockdev_cfg_t
impl RefUnwindSafe for fs_ext4_blockdev_cfg_t
impl Unpin for fs_ext4_blockdev_cfg_t
impl UnsafeUnpin for fs_ext4_blockdev_cfg_t
impl UnwindSafe for fs_ext4_blockdev_cfg_t
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