pub struct CapInfo {
pub resource_id: u64,
pub rights: u8,
}Expand description
One held capability, as reported by ServiceContext::task_caps.
Fields§
§resource_id: u64Resource the cap targets. Stable kernel resources: 1=log_write, 2=spawn,
3=console_read, 4=console_push, 5=introspect, 6..=18 the other kernel
authorities (kernel/src/capability/mod.rs, e.g. 6=service_control,
8=reboot, 15=image_spawn); larger ids are IPC endpoints, and [4096, 6144)
is the delegated-resource band (§7.10).
rights: u8Rights bitfield: READ=1, WRITE=2, SEND=4, RECV=8, GRANT=16, REVOKE=32.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapInfo
impl RefUnwindSafe for CapInfo
impl Send for CapInfo
impl Sync for CapInfo
impl Unpin for CapInfo
impl UnsafeUnpin for CapInfo
impl UnwindSafe for CapInfo
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