Struct es_event_create_t

Source
#[repr(C)]
pub struct es_event_create_t { pub destination_type: es_destination_type_t, pub destination: es_event_create_t_anon_0, pub anon_1: es_event_create_t_anon_1, /* private fields */ }
Available on macOS only.
Expand description

Create a file system object.

If an object is being created but has not yet been created, the destination_type will be ES_DESTINATION_TYPE_NEW_PATH.

Typically ES_EVENT_TYPE_NOTIFY_CREATE events are fired after the object has been created and the destination_type will be ES_DESTINATION_TYPE_EXISTING_FILE. The exception to this is for notifications that occur if an ES client responds to an ES_EVENT_TYPE_AUTH_CREATE event with ES_AUTH_RESULT_DENY.

This event can fire multiple times for a single syscall, for example when the syscall has to be retried due to racing VFS operations.

This event type does not support caching.

Fields§

§destination_type: es_destination_type_t

Whether or not the destination refers to an existing file (see note)

§destination: es_event_create_t_anon_0

Information about the destination of the new file (see note)

§anon_1: es_event_create_t_anon_1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,