Home
runx-runtime

runx_runtime::dev::watch

Structs §

DevWatchOptions §

pub struct runx_runtime::dev::watch::DevWatchOptions { /* ... */ }

Implementations §

impl DevWatchOptions

new

fn new(root: impl Into<PathBuf>) -> Self
#[must_use]

Trait Implementations §

impl Borrow for DevWatchOptions

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchOptions

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for DevWatchOptions

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for DevWatchOptions

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchOptions

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchOptions

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchOptions

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchOptions

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for DevWatchOptions

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for DevWatchOptions

Output

impl Equivalent for DevWatchOptions

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for DevWatchOptions

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for DevWatchOptions

clone

fn clone(self: &Self) -> DevWatchOptions

impl Debug for DevWatchOptions

impl PartialEq for DevWatchOptions

eq

fn eq(self: &Self, other: &DevWatchOptions) -> bool

impl Send for DevWatchOptions

impl Sync for DevWatchOptions

impl Freeze for DevWatchOptions

impl UnsafeUnpin for DevWatchOptions

impl Unpin for DevWatchOptions

impl UnwindSafe for DevWatchOptions

impl RefUnwindSafe for DevWatchOptions

impl StructuralPartialEq for DevWatchOptions

impl Eq for DevWatchOptions

DevWatchSnapshot §

pub struct runx_runtime::dev::watch::DevWatchSnapshot { /* ... */ }

Trait Implementations §

impl Borrow for DevWatchSnapshot

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchSnapshot

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for DevWatchSnapshot

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for DevWatchSnapshot

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchSnapshot

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchSnapshot

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchSnapshot

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchSnapshot

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for DevWatchSnapshot

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for DevWatchSnapshot

Output

impl Equivalent for DevWatchSnapshot

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for DevWatchSnapshot

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for DevWatchSnapshot

clone

fn clone(self: &Self) -> DevWatchSnapshot

impl Debug for DevWatchSnapshot

impl PartialEq for DevWatchSnapshot

eq

fn eq(self: &Self, other: &DevWatchSnapshot) -> bool

impl Send for DevWatchSnapshot

impl Sync for DevWatchSnapshot

impl Freeze for DevWatchSnapshot

impl UnsafeUnpin for DevWatchSnapshot

impl Unpin for DevWatchSnapshot

impl UnwindSafe for DevWatchSnapshot

impl RefUnwindSafe for DevWatchSnapshot

impl StructuralPartialEq for DevWatchSnapshot

impl Eq for DevWatchSnapshot

DevWatchEvent §

pub struct runx_runtime::dev::watch::DevWatchEvent { /* ... */ }

Trait Implementations §

impl Borrow for DevWatchEvent

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchEvent

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for DevWatchEvent

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for DevWatchEvent

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchEvent

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchEvent

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchEvent

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchEvent

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for DevWatchEvent

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for DevWatchEvent

Output

impl Equivalent for DevWatchEvent

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for DevWatchEvent

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for DevWatchEvent

clone

fn clone(self: &Self) -> DevWatchEvent

impl Debug for DevWatchEvent

impl PartialEq for DevWatchEvent

eq

fn eq(self: &Self, other: &DevWatchEvent) -> bool

impl Send for DevWatchEvent

impl Sync for DevWatchEvent

impl Freeze for DevWatchEvent

impl UnsafeUnpin for DevWatchEvent

impl Unpin for DevWatchEvent

impl UnwindSafe for DevWatchEvent

impl RefUnwindSafe for DevWatchEvent

impl StructuralPartialEq for DevWatchEvent

impl Eq for DevWatchEvent

DevWatchTrigger §

pub struct runx_runtime::dev::watch::DevWatchTrigger { /* ... */ }

Trait Implementations §

impl Borrow for DevWatchTrigger

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchTrigger

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for DevWatchTrigger

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for DevWatchTrigger

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchTrigger

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchTrigger

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchTrigger

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchTrigger

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for DevWatchTrigger

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for DevWatchTrigger

Output

impl Equivalent for DevWatchTrigger

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for DevWatchTrigger

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for DevWatchTrigger

clone

fn clone(self: &Self) -> DevWatchTrigger

impl Debug for DevWatchTrigger

impl PartialEq for DevWatchTrigger

eq

fn eq(self: &Self, other: &DevWatchTrigger) -> bool

impl Send for DevWatchTrigger

impl Sync for DevWatchTrigger

impl Freeze for DevWatchTrigger

impl UnsafeUnpin for DevWatchTrigger

impl Unpin for DevWatchTrigger

impl UnwindSafe for DevWatchTrigger

impl RefUnwindSafe for DevWatchTrigger

impl StructuralPartialEq for DevWatchTrigger

impl Eq for DevWatchTrigger

PollingDevWatcher §

pub struct runx_runtime::dev::watch::PollingDevWatcher { /* ... */ }

Implementations §

impl PollingDevWatcher

new

fn new(options: DevWatchOptions) -> Result<Self, DevWatchError>

poll

fn poll(self: &mut Self) -> Result<Option<DevWatchTrigger>, DevWatchError>

Trait Implementations §

impl Borrow for PollingDevWatcher

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for PollingDevWatcher

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for PollingDevWatcher

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for PollingDevWatcher

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for PollingDevWatcher

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for PollingDevWatcher

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for PollingDevWatcher

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for PollingDevWatcher

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for PollingDevWatcher

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for PollingDevWatcher

Output

impl Clone for PollingDevWatcher

clone

fn clone(self: &Self) -> PollingDevWatcher

impl Debug for PollingDevWatcher

impl Send for PollingDevWatcher

impl Sync for PollingDevWatcher

impl Freeze for PollingDevWatcher

impl UnsafeUnpin for PollingDevWatcher

impl Unpin for PollingDevWatcher

impl UnwindSafe for PollingDevWatcher

impl RefUnwindSafe for PollingDevWatcher

Enums §

DevWatchEventKind §

pub enum runx_runtime::dev::watch::DevWatchEventKind { /* ... */ }

Trait Implementations §

impl Borrow for DevWatchEventKind

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchEventKind

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl CloneToUninit for DevWatchEventKind

clone_to_uninit

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl Into for DevWatchEventKind

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchEventKind

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchEventKind

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchEventKind

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchEventKind

type_id

fn type_id(self: &Self) -> TypeId

impl ToOwned for DevWatchEventKind

Owned

to_owned

fn to_owned(self: &Self) -> T

clone_into

fn clone_into(self: &Self, target: &mut T)

impl Same for DevWatchEventKind

Output

impl Equivalent for DevWatchEventKind

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Equivalent for DevWatchEventKind

equivalent

fn equivalent(self: &Self, key: &K) -> bool

impl Clone for DevWatchEventKind

clone

fn clone(self: &Self) -> DevWatchEventKind

impl Debug for DevWatchEventKind

impl PartialEq for DevWatchEventKind

eq

fn eq(self: &Self, other: &DevWatchEventKind) -> bool

impl Send for DevWatchEventKind

impl Sync for DevWatchEventKind

impl Freeze for DevWatchEventKind

impl UnsafeUnpin for DevWatchEventKind

impl Unpin for DevWatchEventKind

impl UnwindSafe for DevWatchEventKind

impl RefUnwindSafe for DevWatchEventKind

impl StructuralPartialEq for DevWatchEventKind

impl Eq for DevWatchEventKind

DevWatchError §

pub enum runx_runtime::dev::watch::DevWatchError { /* ... */ }

Trait Implementations §

impl Borrow for DevWatchError

borrow

fn borrow(self: &Self) -> &T

impl BorrowMut for DevWatchError

borrow_mut

fn borrow_mut(self: &mut Self) -> &mut T

impl Into for DevWatchError

into

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl From for DevWatchError

from

fn from(t: T) -> T

Returns the argument unchanged.

impl TryInto for DevWatchError

Error

try_into

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl TryFrom for DevWatchError

Error

try_from

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl Any for DevWatchError

type_id

fn type_id(self: &Self) -> TypeId

impl ToString for DevWatchError

to_string

fn to_string(self: &Self) -> String

impl Same for DevWatchError

Output

impl Debug for DevWatchError

impl Error for DevWatchError

impl Display for DevWatchError

fmt

fn fmt(self: &Self, __formatter: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result

impl Send for DevWatchError

impl Sync for DevWatchError

impl Freeze for DevWatchError

impl UnsafeUnpin for DevWatchError

impl Unpin for DevWatchError

impl UnwindSafe for DevWatchError

impl RefUnwindSafe for DevWatchError

Constants §

DEFAULT_DEV_WATCH_DEBOUNCE_MS §

pub const runx_runtime::dev::watch::DEFAULT_DEV_WATCH_DEBOUNCE_MS: u64 = 120;

Functions §

collect_watch_snapshot §

fn collect_watch_snapshot(options: &DevWatchOptions) -> Result<DevWatchSnapshot, DevWatchError>

should_ignore_dev_watch_path §

fn should_ignore_dev_watch_path(path: &std::path::Path, extra_ignored_names: &[String]) -> bool
#[must_use]