Struct a653rs_linux_core::partition::PartitionConstants
source · pub struct PartitionConstants {
pub name: String,
pub identifier: PartitionId,
pub period: Duration,
pub duration: Duration,
pub start_condition: StartCondition,
pub start_time_fd: RawFd,
pub partition_mode_fd: RawFd,
pub io_fd: RawFd,
pub sampling: Vec<SamplingConstant>,
pub queuing: Vec<QueuingConstant>,
}Fields§
§name: String§identifier: PartitionId§period: Duration§duration: Duration§start_condition: StartCondition§start_time_fd: RawFd§partition_mode_fd: RawFd§io_fd: RawFd§sampling: Vec<SamplingConstant>§queuing: Vec<QueuingConstant>Implementations§
source§impl PartitionConstants
impl PartitionConstants
pub const PARTITION_CONSTANTS_FD: &'static str = "PARTITION_CONSTANTS_FD"
pub const PROCESSES_CGROUP: &'static str = "processes"
pub const MAIN_PROCESS_CGROUP: &'static str = "main"
pub const APERIODIC_PROCESS_CGROUP: &'static str = "aperiodic"
pub const PERIODIC_PROCESS_CGROUP: &'static str = "periodic"
pub const IPC_SENDER: &'static str = "/.inner/ipc"
pub fn open() -> TypedResult<Self>
Trait Implementations§
source§impl Clone for PartitionConstants
impl Clone for PartitionConstants
source§fn clone(&self) -> PartitionConstants
fn clone(&self) -> PartitionConstants
Returns a copy 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 PartitionConstants
impl Debug for PartitionConstants
source§impl<'de> Deserialize<'de> for PartitionConstants
impl<'de> Deserialize<'de> for PartitionConstants
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for PartitionConstants
impl Serialize for PartitionConstants
source§impl TryFrom<PartitionConstants> for RawFd
impl TryFrom<PartitionConstants> for RawFd
§type Error = TypedError
type Error = TypedError
The type returned in the event of a conversion error.
source§fn try_from(consts: PartitionConstants) -> TypedResult<Self>
fn try_from(consts: PartitionConstants) -> TypedResult<Self>
Performs the conversion.
source§impl TryFrom<i32> for PartitionConstants
impl TryFrom<i32> for PartitionConstants
§type Error = TypedError
type Error = TypedError
The type returned in the event of a conversion error.
source§fn try_from(file: RawFd) -> TypedResult<Self>
fn try_from(file: RawFd) -> TypedResult<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PartitionConstants
impl RefUnwindSafe for PartitionConstants
impl Send for PartitionConstants
impl Sync for PartitionConstants
impl Unpin for PartitionConstants
impl UnwindSafe for PartitionConstants
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<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 more