pub enum Error {
Unreadable(Error),
Write(Error),
Unmarked {
cause: Error,
content_removed: bool,
},
}Expand description
Why a content file did not reach the session directory.
Variants§
Unreadable(Error)
The content file could not be read out of the container: encrypted, stored with a compression method this build carries no decoder for, or a container declaring a version it does not implement.
Write(Error)
The content file could not be written.
Unmarked
Where the container came from could not be carried onto the content file, so opening the content file would not raise the warning opening the container would have.
Untested, and this says so rather than implying otherwise: reaching it
needs a platform that gates opening on a mark and then refuses the
write, which Linux does not do — it keeps provenance as a note. The
arms that can be reached here are, and flow::open re-asks the
filesystem before reporting content_removed, because the sentence has
to be true when it is printed rather than when it was built.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()