pub struct Resource {
pub side: Side,
pub op: MetadataOp,
}Expand description
Which throttled metadata resource a permit / cap belongs to.
Each (Side, MetadataOp) pair gets its own independent concurrency
cap so the controller for one syscall on one filesystem can adjust
without dragging others along — for example, (Source, Stat) and
(Destination, Unlink) are completely independent enforcement gates.
Fields§
§side: Side§op: MetadataOpImplementations§
Trait Implementations§
impl Copy for Resource
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resource
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