Struct fidl_fuchsia_io::MutableNodeAttributes
source · pub struct MutableNodeAttributes {
pub creation_time: Option<u64>,
pub modification_time: Option<u64>,
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub rdev: Option<u64>,
pub access_time: Option<u64>,
pub casefold: Option<bool>,
pub selinux_context: Option<SelinuxContext>,
pub wrapping_key_id: Option<[u8; 16]>,
/* private fields */
}
Fields§
§creation_time: Option<u64>
Time of creation in nanoseconds since the Unix epoch, UTC.
modification_time: Option<u64>
Time of last modification in nanoseconds since the Unix epoch, UTC.
mode: Option<u32>
POSIX compatibility attributes. Most filesystems will not support these. Those that do must simply store and retrieve them (e.g. as extended attributes) and not attempt to interpret them (e.g. by doing permission checks or handling device opens specially).
uid: Option<u32>
§gid: Option<u32>
§rdev: Option<u64>
§access_time: Option<u64>
Time of last access in nanoseconds since the Unix epoch, UTC. Note that servers might not always update this if this is the only attribute being updated.
casefold: Option<bool>
Casefold (case-insensitive filename) support This attribute can only be changed on empty directories and will be inherited by any child directories that are subsequently created. The only filesystem to support this at the time of writing is Fxfs.
selinux_context: Option<SelinuxContext>
The value of the extended attribute “security.selinux” to be used in the context of SELinux
implementations. The value can only be set or returned if it is
MAX_SELINUX_CONTEXT_ATTRIBUTE_LEN
characters or less to constrain the size of the
response. If the value is not currently found on the node the response the field will not
be included in the repsonse. If the value is found on the node but the server is not
returning it here due to size or implementation, then it will return
use_extended_attributes
to indicate using the [’fuchsia.io/Node.GetExtendedAttribute`]
to retreive it.
ZX_ERR_INVALID_ARGS will be returned if there is an attempt set this attribute with the
use_extended_attributes
member.
wrapping_key_id: Option<[u8; 16]>
Fscrypt support This attribute can only be changed on empty directories and will be inherited by any child directories that are subsequently created. This attribute can only be set once per directory. The wrapping_key_id set will be used to encrypt file contents and filenames for this directory and its children. The only filesystem to support this at the time of writing is Fxfs.
Trait Implementations§
source§impl Clone for MutableNodeAttributes
impl Clone for MutableNodeAttributes
source§fn clone(&self) -> MutableNodeAttributes
fn clone(&self) -> MutableNodeAttributes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MutableNodeAttributes
impl Debug for MutableNodeAttributes
source§impl<D: ResourceDialect> Decode<MutableNodeAttributes, D> for MutableNodeAttributes
impl<D: ResourceDialect> Decode<MutableNodeAttributes, D> for MutableNodeAttributes
source§impl Default for MutableNodeAttributes
impl Default for MutableNodeAttributes
source§fn default() -> MutableNodeAttributes
fn default() -> MutableNodeAttributes
source§impl<D: ResourceDialect> Encode<MutableNodeAttributes, D> for &MutableNodeAttributes
impl<D: ResourceDialect> Encode<MutableNodeAttributes, D> for &MutableNodeAttributes
source§impl PartialEq for MutableNodeAttributes
impl PartialEq for MutableNodeAttributes
source§fn eq(&self, other: &MutableNodeAttributes) -> bool
fn eq(&self, other: &MutableNodeAttributes) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for MutableNodeAttributes
impl TypeMarker for MutableNodeAttributes
§type Owned = MutableNodeAttributes
type Owned = MutableNodeAttributes
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 MutableNodeAttributes
impl ValueTypeMarker for MutableNodeAttributes
§type Borrowed<'a> = &'a MutableNodeAttributes
type Borrowed<'a> = &'a MutableNodeAttributes
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for MutableNodeAttributes
impl StructuralPartialEq for MutableNodeAttributes
Auto Trait Implementations§
impl Freeze for MutableNodeAttributes
impl RefUnwindSafe for MutableNodeAttributes
impl Send for MutableNodeAttributes
impl Sync for MutableNodeAttributes
impl Unpin for MutableNodeAttributes
impl UnwindSafe for MutableNodeAttributes
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
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)
clone_to_uninit
)