Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion embedded-storage-async/src/nor_flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ pub trait ReadNorFlash: ErrorType {
async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;

/// The capacity of the peripheral in bytes.
fn capacity(&self) -> usize;
///
/// # Errors
///
/// Returns an error if the IO operation fails.
async fn capacity(&self) -> Result<usize, Self::Error>;
}

/// NOR flash trait.
Expand Down
Loading