pub struct SchedulerState { /* private fields */ }Implementations§
Source§impl SchedulerState
impl SchedulerState
pub fn is_default(&self) -> bool
Sourcepub fn from_binder(policy: u8, priority_or_nice: u8) -> Result<Self, Errno>
pub fn from_binder(policy: u8, priority_or_nice: u8) -> Result<Self, Errno>
Create a policy according to the “sched_policy” and “priority” bits of a flat_binder_object_flags bitmask (see uapi/linux/android/binder.h).
It would be very strange for this to need to be called anywhere outside of our Binder implementation.
pub fn fork(self) -> Self
Sourcepub fn policy_for_sched_getscheduler(&self) -> u32
pub fn policy_for_sched_getscheduler(&self) -> u32
Return the policy as an integer (SCHED_NORMAL, SCHED_BATCH, &c) bitwise-ored with the current reset-on-fork status (SCHED_RESET_ON_FORK or 0, depending).
It would be strange for this to need to be called anywhere outside the implementation of the sched_getscheduler system call.
Sourcepub fn get_sched_param(&self) -> sched_param
pub fn get_sched_param(&self) -> sched_param
Return the priority as a field in a sched_param struct.
It would be strange for this to need to be called anywhere outside the implementation of the sched_getparam system call.
pub fn normal_priority(&self) -> NormalPriority
pub fn is_realtime(&self) -> bool
pub fn is_less_than_for_binder(&self, other: Self) -> bool
Trait Implementations§
Source§impl Clone for SchedulerState
impl Clone for SchedulerState
Source§fn clone(&self) -> SchedulerState
fn clone(&self) -> SchedulerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedulerState
impl Debug for SchedulerState
Source§impl Default for SchedulerState
impl Default for SchedulerState
Source§impl PartialEq for SchedulerState
impl PartialEq for SchedulerState
impl Copy for SchedulerState
impl Eq for SchedulerState
impl StructuralPartialEq for SchedulerState
Auto Trait Implementations§
impl Freeze for SchedulerState
impl RefUnwindSafe for SchedulerState
impl Send for SchedulerState
impl Sync for SchedulerState
impl Unpin for SchedulerState
impl UnwindSafe for SchedulerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
impl<T, U> MultiArchFrom<T> for Uwhere
U: From<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.