Enum proto_pdk_api::HostLibc
source · 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 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 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§fn eq(&self, other: &SystemLibc) -> bool
fn eq(&self, other: &SystemLibc) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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