pub struct SecurityContextColors {
pub user: LayerColors,
pub role: LayerColors,
pub the_type: LayerColors,
pub range: LayerColors,
}Expand description
Colors of a security context.
Fields§
§user: LayerColorsBackground and foreground colors of SELinux user.
role: LayerColorsBackground and foreground colors of SELinux role.
the_type: LayerColorsBackground and foreground colors of SELinux type.
range: LayerColorsBackground and foreground colors of SELinux range.
Implementations§
Source§impl SecurityContextColors
impl SecurityContextColors
Sourcepub fn new(
user: LayerColors,
role: LayerColors,
the_type: LayerColors,
range: LayerColors,
) -> Self
pub fn new( user: LayerColors, role: LayerColors, the_type: LayerColors, range: LayerColors, ) -> Self
Create a new instance.
Trait Implementations§
Source§impl Clone for SecurityContextColors
impl Clone for SecurityContextColors
Source§fn clone(&self) -> SecurityContextColors
fn clone(&self) -> SecurityContextColors
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 SecurityContextColors
impl Debug for SecurityContextColors
Source§impl Default for SecurityContextColors
impl Default for SecurityContextColors
Source§fn default() -> SecurityContextColors
fn default() -> SecurityContextColors
Returns the “default value” for a type. Read more
Source§impl Hash for SecurityContextColors
impl Hash for SecurityContextColors
Source§impl Ord for SecurityContextColors
impl Ord for SecurityContextColors
Source§fn cmp(&self, other: &SecurityContextColors) -> Ordering
fn cmp(&self, other: &SecurityContextColors) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SecurityContextColors
impl PartialEq for SecurityContextColors
Source§impl PartialOrd for SecurityContextColors
impl PartialOrd for SecurityContextColors
impl Copy for SecurityContextColors
impl Eq for SecurityContextColors
impl StructuralPartialEq for SecurityContextColors
Auto Trait Implementations§
impl Freeze for SecurityContextColors
impl RefUnwindSafe for SecurityContextColors
impl Send for SecurityContextColors
impl Sync for SecurityContextColors
impl Unpin for SecurityContextColors
impl UnwindSafe for SecurityContextColors
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