Lines Matching defs:value
110 fn try_from(value: i32) -> Result<Self, Self::Error> {
111 match value {
473 /// Get the `current` timer slack value of the calling thread.
486 /// Sets the `current` timer slack value for the calling thread.
493 pub fn set_current_timer_slack(value: Option<NonZeroU64>) -> io::Result<()> {
494 let value = usize::try_from(value.map_or(0, NonZeroU64::get)).map_err(|_r| io::Errno::RANGE)?;
495 unsafe { prctl_2args(PR_SET_TIMERSLACK, value as *mut _) }.map(|_r| ())
504 /// Get the value of the `no_new_privs` attribute for the calling thread.
832 fn try_from(value: u8) -> Result<Self, Self::Error> {
833 match value {
894 fn try_from(value: u32) -> Result<Self, Self::Error> {
895 match value {
912 let mut value: MaybeUninit<u64> = MaybeUninit::uninit();
919 value.as_mut_ptr().cast(),
921 Ok(value.assume_init())