pub struct AccessRule {
pub resource: ResourceId,
pub offset: u64,
pub width: u32,
pub class: AccessClass,
}Expand description
One exact session allowlist rule. Wildcards do not exist: a rule matches exactly one resource, offset, width, and access class.
Fields§
§resource: ResourceIdResource the rule applies to.
offset: u64Byte offset from the start of the logical resource.
width: u32Access width in bytes.
class: AccessClassAccess class the rule authorizes.
Trait Implementations§
Source§impl Clone for AccessRule
impl Clone for AccessRule
impl Copy for AccessRule
Source§impl Debug for AccessRule
impl Debug for AccessRule
impl Eq for AccessRule
Source§impl Ord for AccessRule
impl Ord for AccessRule
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AccessRule
impl PartialEq for AccessRule
Source§impl PartialOrd for AccessRule
impl PartialOrd for AccessRule
impl StructuralPartialEq for AccessRule
Auto Trait Implementations§
impl Freeze for AccessRule
impl RefUnwindSafe for AccessRule
impl Send for AccessRule
impl Sync for AccessRule
impl Unpin for AccessRule
impl UnsafeUnpin for AccessRule
impl UnwindSafe for AccessRule
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.