pub struct DirectoryProtocolOptions {
pub optional_rights: Option<Operations>,
/* private fields */
}
Fields§
§optional_rights: Option<Operations>
Optional rights to be negotiated.
When present, indicates that the caller requests additional optional rights equal to the intersection of this value and the rights on the requesting connection. This acts as a high water mark that prevents rights escalation as this request is proxied over multiple hops; each proxy must intersect the value with the rights on the requesting connection before proxying on.
This field is necessary to express POSIX semantics where open
of a directory must
be O_RDONLY
yet openat
can be used to open non-directory nodes within that
directory with privileges exceeding O_RDONLY
. This means that POSIX clients must
always set this to the full set of Rights
to implement open
or openat
calls
which don’t forbid directories (e.g. O_WRONLY
and O_RDWR
do forbid directories).
Trait Implementations§
source§impl Clone for DirectoryProtocolOptions
impl Clone for DirectoryProtocolOptions
source§fn clone(&self) -> DirectoryProtocolOptions
fn clone(&self) -> DirectoryProtocolOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DirectoryProtocolOptions
impl Debug for DirectoryProtocolOptions
source§impl<D: ResourceDialect> Decode<DirectoryProtocolOptions, D> for DirectoryProtocolOptions
impl<D: ResourceDialect> Decode<DirectoryProtocolOptions, D> for DirectoryProtocolOptions
source§impl Default for DirectoryProtocolOptions
impl Default for DirectoryProtocolOptions
source§fn default() -> DirectoryProtocolOptions
fn default() -> DirectoryProtocolOptions
source§impl<D: ResourceDialect> Encode<DirectoryProtocolOptions, D> for &DirectoryProtocolOptions
impl<D: ResourceDialect> Encode<DirectoryProtocolOptions, D> for &DirectoryProtocolOptions
source§impl PartialEq for DirectoryProtocolOptions
impl PartialEq for DirectoryProtocolOptions
source§fn eq(&self, other: &DirectoryProtocolOptions) -> bool
fn eq(&self, other: &DirectoryProtocolOptions) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for DirectoryProtocolOptions
impl TypeMarker for DirectoryProtocolOptions
§type Owned = DirectoryProtocolOptions
type Owned = DirectoryProtocolOptions
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 DirectoryProtocolOptions
impl ValueTypeMarker for DirectoryProtocolOptions
§type Borrowed<'a> = &'a DirectoryProtocolOptions
type Borrowed<'a> = &'a DirectoryProtocolOptions
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for DirectoryProtocolOptions
impl StructuralPartialEq for DirectoryProtocolOptions
Auto Trait Implementations§
impl Freeze for DirectoryProtocolOptions
impl RefUnwindSafe for DirectoryProtocolOptions
impl Send for DirectoryProtocolOptions
impl Sync for DirectoryProtocolOptions
impl Unpin for DirectoryProtocolOptions
impl UnwindSafe for DirectoryProtocolOptions
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
)