Skip to content

Commit

Permalink
Add to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
avsaase committed Jul 19, 2024
1 parent 1a86e28 commit 9bf91f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions embedded-storage-async/src/nor_flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ pub trait ReadNorFlash: ErrorType {
async fn read(&mut self, offset: u32, bytes: &mut [u8]) -> Result<(), Self::Error>;

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

Expand Down

0 comments on commit 9bf91f1

Please sign in to comment.