#[repr(C, packed)]
pub struct DevicePathNode { /* private fields */ }
Expand description

A single node within a DevicePath.

Each node starts with a DevicePathHeader. The rest of the data in the node depends on the type of node.

See the module-level documentation for more details.

Implementations

Create a DevicePathNode reference from an opaque pointer.

Safety

The input pointer must point to valid data. That data must remain valid for the lifetime 'a, and cannot be mutated during that lifetime.

Cast to a FfiDevicePath pointer.

Type of device

Sub type of device

Tuple of the node’s type and subtype.

Size (in bytes) of the full DevicePathNode, including the header.

True if this node ends an entire DevicePath.

Convert to a FilePathMediaDevicePath. Returns None if the node is not of the appropriate type.

Trait Implementations

Formats the value using the given formatter. Read more

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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