pub enum HostLibc {
Gnu,
Musl,
Unknown,
}
Expand description
Libc being used in the system environment.
Variants§
Implementations§
Source§impl SystemLibc
impl SystemLibc
Sourcepub fn detect(os: SystemOS) -> SystemLibc
pub fn detect(os: SystemOS) -> SystemLibc
Detect the libc type from the current system environment.
Trait Implementations§
Source§impl Clone for SystemLibc
impl Clone for SystemLibc
Source§fn clone(&self) -> SystemLibc
fn clone(&self) -> SystemLibc
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 SystemLibc
impl Debug for SystemLibc
Source§impl Default for SystemLibc
impl Default for SystemLibc
Source§fn default() -> SystemLibc
fn default() -> SystemLibc
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemLibc
impl<'de> Deserialize<'de> for SystemLibc
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemLibc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SystemLibc, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SystemLibc
impl Display for SystemLibc
Source§impl Hash for SystemLibc
impl Hash for SystemLibc
Source§impl PartialEq for SystemLibc
impl PartialEq for SystemLibc
Source§impl Serialize for SystemLibc
impl Serialize for SystemLibc
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for SystemLibc
impl Eq for SystemLibc
impl StructuralPartialEq for SystemLibc
Auto Trait Implementations§
impl Freeze for SystemLibc
impl RefUnwindSafe for SystemLibc
impl Send for SystemLibc
impl Sync for SystemLibc
impl Unpin for SystemLibc
impl UnwindSafe for SystemLibc
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more