pub struct KextDependencies {
    pub bundle_compatible_version: Option<String>,
    pub bundle_libraries: Option<DefaultDictionary>,
}
Expand description

Kext Dependencies

Fields

bundle_compatible_version: Option<String>

The backward limit of compatibility for the current driver.

Specify a previous version for the current driver, or the driver’s current version. Format this string the same way you format the value of the CFBundleVersion key. The combination of this value and the value in the CFBundleVersion key define the range of versions that offers the same level of compatibility. Dependent drivers use this information to determine if they are compatible with the driver. For example, if the driver’s current version is 10.0, and you set the value of this key to 5.0, a driver that depends on version 7.0 can successfully use the current driver.

When you change your driver in a way that breaks compatibility with your old code, update the value of this key. At that time, set the new value to the current version of your driver.

Availability

  • macOS 10.0+

Framework

  • Kernel
bundle_libraries: Option<DefaultDictionary>

The drivers that the system must load before your driver.

Use this key to specify other drivers that your driver depends on. For example, specify any drivers that contain symbols your driver creates or uses at startup. The system loads the drivers in this list before it attempts to load your driver. If the system fails to resolve the dependencies or load the corresponding libraries, the kernel doesn’t load your driver.

Each key in the dictionary is the bundle identifier of another driver, and the value is a string that contains the minimum version of the driver you require. Your driver must be compatible with the specified version of the other driver.

Don’t include this key for codeless kexts.

Availability

  • macOS 10.0+

Framework

  • Kernel

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.