#[repr(C)]pub struct KernelObjectInfo {
pub object_type: KernelObjectType,
pub capabilities: ObjectCapabilities,
pub handle_role: HandleRole,
pub access_mode: u32,
}Expand description
Information about a KernelObject that can be queried by user space
Fields§
§object_type: KernelObjectTypeThe type of the underlying KernelObject
capabilities: ObjectCapabilitiesAvailable capabilities for this object
handle_role: HandleRoleCurrent handle metadata
access_mode: u32Access permissions
Implementations§
Source§impl KernelObjectInfo
impl KernelObjectInfo
Sourcepub fn for_file(handle_role: HandleRole, readable: bool, writable: bool) -> Self
pub fn for_file(handle_role: HandleRole, readable: bool, writable: bool) -> Self
Create info for a File KernelObject
Sourcepub fn for_pipe(handle_role: HandleRole, readable: bool, writable: bool) -> Self
pub fn for_pipe(handle_role: HandleRole, readable: bool, writable: bool) -> Self
Create info for a Pipe KernelObject
Sourcepub fn for_counter(
handle_role: HandleRole,
readable: bool,
writable: bool,
) -> Self
pub fn for_counter( handle_role: HandleRole, readable: bool, writable: bool, ) -> Self
Create info for a Counter KernelObject
Sourcepub fn for_socket(
handle_role: HandleRole,
readable: bool,
writable: bool,
) -> Self
pub fn for_socket( handle_role: HandleRole, readable: bool, writable: bool, ) -> Self
Create info for a Socket KernelObject
Sourcepub fn for_event_channel(handle_role: HandleRole) -> Self
pub fn for_event_channel(handle_role: HandleRole) -> Self
Create info for an EventChannel KernelObject
Sourcepub fn for_event_subscription(handle_role: HandleRole) -> Self
pub fn for_event_subscription(handle_role: HandleRole) -> Self
Create info for an EventSubscription KernelObject
Create info for a SharedMemory KernelObject
fn encode_access_mode(readable: bool, writable: bool) -> u32
Trait Implementations§
Source§impl Clone for KernelObjectInfo
impl Clone for KernelObjectInfo
Source§fn clone(&self) -> KernelObjectInfo
fn clone(&self) -> KernelObjectInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelObjectInfo
impl Debug for KernelObjectInfo
Source§impl PartialEq for KernelObjectInfo
impl PartialEq for KernelObjectInfo
impl Copy for KernelObjectInfo
impl Eq for KernelObjectInfo
impl StructuralPartialEq for KernelObjectInfo
Auto Trait Implementations§
impl Freeze for KernelObjectInfo
impl RefUnwindSafe for KernelObjectInfo
impl Send for KernelObjectInfo
impl Sync for KernelObjectInfo
impl Unpin for KernelObjectInfo
impl UnwindSafe for KernelObjectInfo
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.