Enum fidl_fuchsia_io::WatchEvent
source · #[repr(u8)]pub enum WatchEvent {
Deleted = 0,
Added = 1,
Removed = 2,
Existing = 3,
Idle = 4,
}
Variants§
Deleted = 0
Indicates the directory being watched has been deleted. The name returned for this event
will be .
(dot), as it is refering to the directory itself.
Added = 1
Indicates a node has been created (either new or moved) into a directory.
Removed = 2
Identifies a node has been removed (either deleted or moved) from the directory.
Existing = 3
Identifies a node already existed in the directory when watching started.
Idle = 4
Identifies that no more EXISTING
events will be sent. The name returned for this event
will be empty, as it is not refering to a specific entry.
Implementations§
source§impl WatchEvent
impl WatchEvent
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
source§impl Clone for WatchEvent
impl Clone for WatchEvent
source§fn clone(&self) -> WatchEvent
fn clone(&self) -> WatchEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WatchEvent
impl Debug for WatchEvent
source§impl<D: ResourceDialect> Decode<WatchEvent, D> for WatchEvent
impl<D: ResourceDialect> Decode<WatchEvent, D> for WatchEvent
source§impl<D: ResourceDialect> Encode<WatchEvent, D> for WatchEvent
impl<D: ResourceDialect> Encode<WatchEvent, D> for WatchEvent
source§impl Hash for WatchEvent
impl Hash for WatchEvent
source§impl Ord for WatchEvent
impl Ord for WatchEvent
source§fn cmp(&self, other: &WatchEvent) -> Ordering
fn cmp(&self, other: &WatchEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WatchEvent
impl PartialEq for WatchEvent
source§fn eq(&self, other: &WatchEvent) -> bool
fn eq(&self, other: &WatchEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WatchEvent
impl PartialOrd for WatchEvent
source§fn partial_cmp(&self, other: &WatchEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &WatchEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for WatchEvent
impl TypeMarker for WatchEvent
§type Owned = WatchEvent
type Owned = WatchEvent
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for WatchEvent
impl ValueTypeMarker for WatchEvent
§type Borrowed<'a> = WatchEvent
type Borrowed<'a> = WatchEvent
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for WatchEvent
impl Eq for WatchEvent
impl StructuralPartialEq for WatchEvent
Auto Trait Implementations§
impl Freeze for WatchEvent
impl RefUnwindSafe for WatchEvent
impl Send for WatchEvent
impl Sync for WatchEvent
impl Unpin for WatchEvent
impl UnwindSafe for WatchEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)