#[repr(u32)]pub enum KernelObjectType {
File = 1,
Pipe = 2,
EventChannel = 3,
EventSubscription = 4,
CharDevice = 5,
BlockDevice = 6,
Socket = 7,
SharedMemory = 8,
Counter = 9,
Unknown = 0,
}Expand description
Types of KernelObject that can be distinguished by user space
Variants§
File = 1
Regular file object
Pipe = 2
Pipe object for IPC
EventChannel = 3
Event channel for pub/sub IPC
EventSubscription = 4
Event subscription for receiving events
CharDevice = 5
Character device (future)
BlockDevice = 6
Block device (future)
Socket = 7
Socket (future)
Shared memory for IPC
Counter = 9
Counter for event notification (like eventfd)
Unknown = 0
Unknown or unsupported type
Trait Implementations§
Source§impl Clone for KernelObjectType
impl Clone for KernelObjectType
Source§fn clone(&self) -> KernelObjectType
fn clone(&self) -> KernelObjectType
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 KernelObjectType
impl Debug for KernelObjectType
Source§impl PartialEq for KernelObjectType
impl PartialEq for KernelObjectType
impl Copy for KernelObjectType
impl Eq for KernelObjectType
impl StructuralPartialEq for KernelObjectType
Auto Trait Implementations§
impl Freeze for KernelObjectType
impl RefUnwindSafe for KernelObjectType
impl Send for KernelObjectType
impl Sync for KernelObjectType
impl Unpin for KernelObjectType
impl UnwindSafe for KernelObjectType
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.