pub struct UpcallId {
pub driver_num: usize,
pub subscribe_num: usize,
}
Expand description
Type to uniquely identify an upcall subscription across all drivers.
This contains the driver number and the subscribe number within the driver.
Fields§
§driver_num: usize
The SyscallDriver
implementation this upcall corresponds to.
subscribe_num: usize
The subscription index the upcall corresponds to. Subscribe numbers
start at 0 and increment for each upcall defined for a particular
SyscallDriver
.
Trait Implementations§
impl Copy for UpcallId
impl Eq for UpcallId
impl StructuralPartialEq for UpcallId
Auto Trait Implementations§
impl Freeze for UpcallId
impl RefUnwindSafe for UpcallId
impl Send for UpcallId
impl Sync for UpcallId
impl Unpin for UpcallId
impl UnwindSafe for UpcallId
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