pub struct InotifyEvent<'b> {
pub wd: WatchDescriptor,
pub mask: InotifyEventMask,
pub cookie: u32,
pub name: Option<&'b [u8]>,
}Expand description
Un événement inotify décodé, empruntant le buffer de lecture (zéro copie).
Fields§
§wd: WatchDescriptorWatch d’où provient l’événement (-1 typé pour Q_OVERFLOW).
mask: InotifyEventMaskMasque des événements survenus (IN_*).
Corrèle un MOVED_FROM avec son MOVED_TO (0 si non applicable).
name: Option<&'b [u8]>Nom (octets, pas d’UTF-8 présumé) relatif au watch, sans le NUL de
padding ; None si l’événement ne porte pas de nom.
Trait Implementations§
Source§impl<'b> Clone for InotifyEvent<'b>
impl<'b> Clone for InotifyEvent<'b>
Source§fn clone(&self) -> InotifyEvent<'b>
fn clone(&self) -> InotifyEvent<'b>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'b> Copy for InotifyEvent<'b>
Source§impl<'b> Debug for InotifyEvent<'b>
impl<'b> Debug for InotifyEvent<'b>
impl<'b> Eq for InotifyEvent<'b>
Source§impl<'b> PartialEq for InotifyEvent<'b>
impl<'b> PartialEq for InotifyEvent<'b>
impl<'b> StructuralPartialEq for InotifyEvent<'b>
Auto Trait Implementations§
impl<'b> Freeze for InotifyEvent<'b>
impl<'b> RefUnwindSafe for InotifyEvent<'b>
impl<'b> Send for InotifyEvent<'b>
impl<'b> Sync for InotifyEvent<'b>
impl<'b> Unpin for InotifyEvent<'b>
impl<'b> UnsafeUnpin for InotifyEvent<'b>
impl<'b> UnwindSafe for InotifyEvent<'b>
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