Struct grpcio_sys::grpc_tls_server_authorization_check_arg[][src]

#[repr(C)]
pub struct grpc_tls_server_authorization_check_arg {
Show 13 fields pub cb: grpc_tls_on_server_authorization_check_done_cb, pub cb_user_data: *mut c_void, pub success: c_int, pub target_name: *const c_char, pub peer_cert: *const c_char, pub peer_cert_full_chain: *const c_char, pub subject_alternative_names: *mut *mut c_char, pub subject_alternative_names_size: usize, pub status: Type, pub error_details: *mut grpc_tls_error_details, pub config: *mut grpc_tls_server_authorization_check_config, pub context: *mut c_void, pub destroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>,
}
Expand description

A struct containing all information necessary to schedule/cancel a server authorization check request.

  • cb and cb_user_data represent a gRPC-provided callback and an argument passed to it.
  • success will store the result of server authorization check. That is, if success returns a non-zero value, it means the authorization check passes and if returning zero, it means the check fails.
  • target_name is the name of an endpoint the channel is connecting to.
  • peer_cert represents a complete certificate chain including both signing and leaf certificates.
  • \a subject_alternative_names is an array of size \a subject_alternative_names_size consisting of pointers to strings.
  • status and error_details contain information about errors occurred when a server authorization check request is scheduled/cancelled.
  • config is a pointer to the unique grpc_tls_server_authorization_check_config instance that this argument corresponds to.
  • context is a pointer to a wrapped language implementation of this grpc_tls_server_authorization_check_arg instance.
  • destroy_context is a pointer to a caller-provided method that cleans up any data associated with the context pointer. It is used for experimental purpose for now and subject to change.

Fields

cb: grpc_tls_on_server_authorization_check_done_cbcb_user_data: *mut c_voidsuccess: c_inttarget_name: *const c_charpeer_cert: *const c_charpeer_cert_full_chain: *const c_charsubject_alternative_names: *mut *mut c_charsubject_alternative_names_size: usizestatus: Typeerror_details: *mut grpc_tls_error_detailsconfig: *mut grpc_tls_server_authorization_check_configcontext: *mut c_voiddestroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.