pub enum PolicyRead<'a> {
Absent,
Present {
body: &'a [u8],
content_type: &'a str,
},
Failed(String),
}Expand description
The result of a single-level policy read, as observed by whichever backend the tier uses.
Constructed by the caller from its own storage API and handed to
classify_policy_read. Deliberately carries no runtime types so the edge
tier can build it from a KV/R2 response.
Variants§
Absent
The backend confirmed no .acl exists at this level. This is the ONLY
input that permits the walk to continue upward.
Present
A .acl body was read.
Fields
Failed(String)
The read itself failed (I/O error, timeout, permission denied, a KV
error that is not “key absent”). Never treat this as PolicyRead::Absent.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PolicyRead<'a>
impl<'a> RefUnwindSafe for PolicyRead<'a>
impl<'a> Send for PolicyRead<'a>
impl<'a> Sync for PolicyRead<'a>
impl<'a> Unpin for PolicyRead<'a>
impl<'a> UnsafeUnpin for PolicyRead<'a>
impl<'a> UnwindSafe for PolicyRead<'a>
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