#[repr(C)]
pub struct grpc_arg { pub type_: grpc_arg_type, pub key: *mut c_char, pub value: grpc_arg_grpc_arg_value, }
Expand description

A single argument… each argument has a key and a value

A note on naming keys: Keys are namespaced into groups, usually grouped by library, and are keys for module XYZ are named XYZ.key1, XYZ.key2, etc. Module names must be restricted to the regex [A-Za-z][_A-Za-z0-9]{,15}. Key names must be restricted to the regex [A-Za-z][_A-Za-z0-9]{,47}.

GRPC core library keys are prefixed by grpc.

Library authors are strongly encouraged to #define symbolic constants for their keys so that it’s possible to change them in the future.

Fields

type_: grpc_arg_typekey: *mut c_charvalue: grpc_arg_grpc_arg_value

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

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

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.