pub struct UidRange {
pub min_uid: Option<u32>,
pub max_uid: Option<u32>,
pub android_match_across_profiles: Option<bool>,
}Expand description
Range of UIDs.
Fields§
§min_uid: Option<u32>inclusive, must be set
max_uid: Option<u32>inclusive, must be set
android_match_across_profiles: Option<bool>Android: if true, compare the UID modulo the per-user/profile offset (AID_USER_OFFSET, 100000).
Implementations§
Source§impl UidRange
impl UidRange
Sourcepub fn min_uid(&self) -> u32
pub fn min_uid(&self) -> u32
Returns the value of min_uid, or the default value if min_uid is unset.
Sourcepub fn max_uid(&self) -> u32
pub fn max_uid(&self) -> u32
Returns the value of max_uid, or the default value if max_uid is unset.
Sourcepub fn android_match_across_profiles(&self) -> bool
pub fn android_match_across_profiles(&self) -> bool
Returns the value of android_match_across_profiles, or the default value if android_match_across_profiles is unset.
Trait Implementations§
impl Copy for UidRange
impl Eq for UidRange
Source§impl Message for UidRange
impl Message for UidRange
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for UidRange
Auto Trait Implementations§
impl Freeze for UidRange
impl RefUnwindSafe for UidRange
impl Send for UidRange
impl Sync for UidRange
impl Unpin for UidRange
impl UnsafeUnpin for UidRange
impl UnwindSafe for UidRange
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