#[repr(transparent)]pub struct PreferStrategy(pub c_uint);Available on crate feature
api-21 only.Expand description
Enumerates preference strategy to be used in OH_LOG_SetLogLevel.
You are advised to select preference strategy based on their respective usage scenarios.
Available since API-level: 21
Tuple Fields§
§0: c_uintImplementations§
Source§impl PreferStrategy
impl PreferStrategy
Sourcepub const UNSET_LOGLEVEL: PreferStrategy
pub const UNSET_LOGLEVEL: PreferStrategy
Used to unset SetLogLevel, then none is set
Sourcepub const PREFER_CLOSE_LOG: PreferStrategy
pub const PREFER_CLOSE_LOG: PreferStrategy
The actual lowest log level is determined by the maximum level between the new level and the system-controlled level. This is equivalent to calling OH_LOG_SetMinLogLevel.
Sourcepub const PREFER_OPEN_LOG: PreferStrategy
pub const PREFER_OPEN_LOG: PreferStrategy
The actual lowest log level is determined by the minimum level between the new level and the system-controlled level.
Trait Implementations§
Source§impl Clone for PreferStrategy
impl Clone for PreferStrategy
Source§fn clone(&self) -> PreferStrategy
fn clone(&self) -> PreferStrategy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreferStrategy
impl Debug for PreferStrategy
Source§impl Hash for PreferStrategy
impl Hash for PreferStrategy
Source§impl PartialEq for PreferStrategy
impl PartialEq for PreferStrategy
impl Copy for PreferStrategy
impl Eq for PreferStrategy
impl StructuralPartialEq for PreferStrategy
Auto Trait Implementations§
impl Freeze for PreferStrategy
impl RefUnwindSafe for PreferStrategy
impl Send for PreferStrategy
impl Sync for PreferStrategy
impl Unpin for PreferStrategy
impl UnwindSafe for PreferStrategy
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)