pub enum WireAcls {
Unknown,
Captured {
access: Option<Vec<u8>>,
default: Option<Vec<u8>>,
},
}Expand description
A source entry’s ACL payload as captured for the wire — or the fact that it was never captured.
The distinction between the two non-carrying states is load-bearing (docs/remote_protocol.md
§2.5). Captured with None fields is an AUTHORITATIVE “the source has no such ACL”, which
the destination reproduces by REMOVING the attribute — not by leaving whatever it inherited
(see common::safedir::apply_acls_fd). Unknown says the wire carries no ACL information at
all: either the master never asked (ExtendedMetadataCapture), or the source COULD NOT read
them (a committed directory that failed to open, whose copy is already recorded as an error) —
and the destination must leave the destination entry’s ACLs alone. Treating unavailable ACLs as
an authoritative clear would strip a reused destination directory’s access and default ACLs
during a source read failure.
Variants§
Unknown
No ACL information: not captured, or unreadable at the source. The destination must not touch the destination entry’s ACLs (for a strict-mode locked reused directory, its original default ACL is restored by the lockdown guard).
Captured
Read from the source entry’s held descriptor: authoritative, including the “has none” case.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireAcls
impl<'de> Deserialize<'de> for WireAcls
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Forget for WireAcls
impl Freeze for WireAcls
impl Move for WireAcls
impl RefUnwindSafe for WireAcls
impl Send for WireAcls
impl Sync for WireAcls
impl Unpin for WireAcls
impl UnsafeUnpin for WireAcls
impl UnwindSafe for WireAcls
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request