Struct usdt::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

A simple struct used to build DTrace probes into Rust code in a build.rs script.

Implementations

Construct a new builder from a path to a D provider definition file.

Set the output filename of the generated Rust code. The default has the same stem as the provider file, with the ".rs" extension.

Set the format for the name of generated probe macros.

The provided format may include the tokens {provider} and {probe}, which will be substituted with the names of the provider and probe. The default is "{probe}".

Set the name of the module containing the generated probe macros.

Generate the Rust code from the D provider file, writing the result to the output file.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.