pub struct FileWatcher { /* private fields */ }Expand description
파일 감시자
Implementations§
Source§impl FileWatcher
impl FileWatcher
Sourcepub const fn new(
dict: Arc<HotReloadDictionary>,
config: WatchConfig,
) -> Result<FileWatcher, DictError>
pub const fn new( dict: Arc<HotReloadDictionary>, config: WatchConfig, ) -> Result<FileWatcher, DictError>
Sourcepub fn new_default(
dict: Arc<HotReloadDictionary>,
) -> Result<FileWatcher, DictError>
pub fn new_default( dict: Arc<HotReloadDictionary>, ) -> Result<FileWatcher, DictError>
Sourcepub fn start(&mut self) -> Result<(), DictError>
pub fn start(&mut self) -> Result<(), DictError>
파일 감시 시작
§Errors
Returns an error if the watcher cannot be created or the directory cannot be accessed.
Sourcepub const fn is_watching(&self) -> bool
pub const fn is_watching(&self) -> bool
감시 중인지 확인
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileWatcher
impl !RefUnwindSafe for FileWatcher
impl Send for FileWatcher
impl Sync for FileWatcher
impl Unpin for FileWatcher
impl UnsafeUnpin for FileWatcher
impl !UnwindSafe for FileWatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more