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

Method io

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

Create an I/O error. # Arguments `err` - The underlying I/O error # Example ```rust use atomic_core::output::repo::OutputError; let err = OutputError::io(std::io::Error::new( std::io::ErrorKind::PermissionDenied, "access denied" )); assert!(err.to_string().contains("I/O error")); ```

(err: std::io::Error)

Source from the content-addressed store, hash-verified

124 /// assert!(err.to_string().contains("I/O error"));
125 /// ```
126 pub fn io(err: std::io::Error) -> Self {
127 Self::Io(err)
128 }
129
130 /// Create a working copy error.
131 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected