pub struct ResourceCeiling {
pub hard_denied: Vec<Range<u64>>,
pub allow_unknown_reads: bool,
pub allow_poll: bool,
pub writable_registers: Vec<WritableRegister>,
pub protocol: Option<ProtocolCeiling>,
pub allow_interrupt: bool,
}Expand description
Immutable per-resource read ceiling. A resource with no ceiling entry permits nothing.
Fields§
§hard_denied: Vec<Range<u64>>Byte ranges that may never be read, even with operator consent.
allow_unknown_reads: boolWhether otherwise-unclassified reads may be enabled by an exact session allowlist rule.
allow_poll: boolWhether repeated polling reads may be authorized by an exact session allowlist rule.
writable_registers: Vec<WritableRegister>Exact writable registers permitted by immutable target policy.
protocol: Option<ProtocolCeiling>Protocol-specific ceiling when the resource is protocol-backed.
allow_interrupt: boolWhether interrupt observation may be authorized by session allowlist.
Implementations§
Source§impl ResourceCeiling
impl ResourceCeiling
Sourcepub fn get_writable_register(&self, offset: u64) -> Option<&WritableRegister>
pub fn get_writable_register(&self, offset: u64) -> Option<&WritableRegister>
Looks up a writable register definition at offset.
Trait Implementations§
Source§impl Clone for ResourceCeiling
impl Clone for ResourceCeiling
Source§impl Debug for ResourceCeiling
impl Debug for ResourceCeiling
Auto Trait Implementations§
impl Freeze for ResourceCeiling
impl RefUnwindSafe for ResourceCeiling
impl Send for ResourceCeiling
impl Sync for ResourceCeiling
impl Unpin for ResourceCeiling
impl UnsafeUnpin for ResourceCeiling
impl UnwindSafe for ResourceCeiling
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