Skip to main content

load_snapshot

Function load_snapshot 

Source
pub fn load_snapshot(path: &Path) -> Option<ChannelStart>
Expand description

Load a persisted snapshot from disk, returning None if the file does not exist, is unreadable, contains malformed JSON, or has a schema version this build does not understand. Persistence is best effort — never propagate errors that would block the user’s operation.