MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / inode_not_found

Method inode_not_found

atomic-core/src/output/repo/error.rs:236–238  ·  view source on GitHub ↗

Create an inode not found error. # Arguments `inode` - The inode that was not found # Example ```rust use atomic_core::output::repo::OutputError; use atomic_core::types::Inode; let err = OutputError::inode_not_found(Inode::new(42)); assert!(err.is_not_found()); ```

(inode: Inode)

Source from the content-addressed store, hash-verified

234 /// assert!(err.is_not_found());
235 /// ```
236 pub fn inode_not_found(inode: Inode) -> Self {
237 Self::InodeNotFound { inode }
238 }
239
240 /// Check if this is a "not found" error.
241 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected