pub struct ProgramInput<'dat> {
pub context_in: Option<&'dat mut [u8]>,
pub context_out: Option<&'dat mut [u8]>,
pub data_in: Option<&'dat [u8]>,
pub data_out: Option<&'dat mut [u8]>,
pub cpu: u32,
pub flags: u32,
/* private fields */
}
Expand description
The input a program accepts.
This type is mostly used in conjunction with the Program::test_run
facility.
Fields§
§context_in: Option<&'dat mut [u8]>
The input context to provide.
The input is mutable because the kernel may modify it.
context_out: Option<&'dat mut [u8]>
The output context buffer provided to the program.
data_in: Option<&'dat [u8]>
Additional data to provide to the program.
data_out: Option<&'dat mut [u8]>
The output data buffer provided to the program.
cpu: u32
The ‘cpu’ value passed to the kernel.
flags: u32
The ‘flags’ value passed to the kernel.
Trait Implementations§
Auto Trait Implementations§
impl<'dat> Freeze for Input<'dat>
impl<'dat> RefUnwindSafe for Input<'dat>
impl<'dat> Send for Input<'dat>
impl<'dat> Sync for Input<'dat>
impl<'dat> Unpin for Input<'dat>
impl<'dat> !UnwindSafe for Input<'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