pub struct Rights(/* private fields */);
Expand description
Opaque rights type to define new traits like PartialOrd on.
Implementations§
Trait Implementations§
source§impl From<Operations> for Rights
impl From<Operations> for Rights
Allows creating rights from fio::Operations.
source§fn from(operations: Operations) -> Self
fn from(operations: Operations) -> Self
Converts to this type from the input type.
source§impl PartialEq for Rights
impl PartialEq for Rights
source§impl WalkStateUnit for Rights
impl WalkStateUnit for Rights
source§fn validate_next(&self, next_rights: &Rights) -> Result<(), Self::Error>
fn validate_next(&self, next_rights: &Rights) -> Result<(), Self::Error>
Ensures the next walk state of rights satisfies a monotonic increasing sequence. Used to verify the expectation that no right requested from a use, offer, or expose is missing as capability routing walks from the capability’s consumer to its provider.
type Error = RightsRoutingError
source§fn finalize_error() -> Self::Error
fn finalize_error() -> Self::Error
The error that is returned by the walk state when attempting to finalize with an invalid
state.
impl Copy for Rights
impl Eq for Rights
impl StructuralPartialEq for Rights
Auto Trait Implementations§
impl Freeze for Rights
impl RefUnwindSafe for Rights
impl Send for Rights
impl Sync for Rights
impl Unpin for Rights
impl UnwindSafe for Rights
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