Skip to main content

try_open

Function try_open 

pub fn try_open(manifest_id: &str) -> Result<(State, DocWriter), StoreError>
Expand description

open() without the swallow-and-log fallback.

§Errors

Returns StoreError when the state directory can’t be opened (a read-only home, a missing HOME, or a document a newer build wrote in an incompatible layout).