Skip to main content

assert_native_backend

Function assert_native_backend 

Source
pub fn assert_native_backend() -> Result<WatcherKind, NonNativeBackend>
Expand description

Asserts the compile-time-resolved watcher backend is a native event backend, returning it for the startup report. Called before any watch is established; the typed refusal aborts frame dev loudly.

§Errors

NonNativeBackend when the platform resolved anything outside the sanctioned FSEvents/inotify set — PollWatcher above all.