pub struct ProgramOutput<'dat> {
pub return_value: u32,
pub context: Option<&'dat mut [u8]>,
pub data: Option<&'dat mut [u8]>,
/* private fields */
}
Expand description
The output a program produces.
This type is mostly used in conjunction with the Program::test_run
facility.
Fields§
§return_value: u32
The value returned by the program.
context: Option<&'dat mut [u8]>
The output context filled by the program/kernel.
data: Option<&'dat mut [u8]>
Output data filled by the program.
Trait Implementations§
Auto Trait Implementations§
impl<'dat> Freeze for Output<'dat>
impl<'dat> RefUnwindSafe for Output<'dat>
impl<'dat> Send for Output<'dat>
impl<'dat> Sync for Output<'dat>
impl<'dat> Unpin for Output<'dat>
impl<'dat> !UnwindSafe for Output<'dat>
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