[][src]Struct grpcio_sys::grpc_tls_credential_reload_arg

#[repr(C)]pub struct grpc_tls_credential_reload_arg {
    pub cb: grpc_tls_on_credential_reload_done_cb,
    pub cb_user_data: *mut c_void,
    pub key_materials_config: *mut grpc_tls_key_materials_config,
    pub status: grpc_ssl_certificate_config_reload_status,
    pub error_details: *const c_char,
    pub config: *mut grpc_tls_credential_reload_config,
    pub context: *mut c_void,
    pub destroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>,
}

A struct containing all information necessary to schedule/cancel a credential reload request.

  • cb and cb_user_data represent a gRPC-provided callback and an argument passed to it.
  • key_materials_config is an in/output parameter containing currently used/newly reloaded credentials. If credential reload does not result in a new credential, key_materials_config should not be modified.
  • status and error_details are used to hold information about errors occurred when a credential reload request is scheduled/cancelled.
  • config is a pointer to the unique grpc_tls_credential_reload_config instance that this argument corresponds to.
  • context is a pointer to a wrapped language implementation of this grpc_tls_credential_reload_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 purposes for now and subject to change.

Fields

cb: grpc_tls_on_credential_reload_done_cbcb_user_data: *mut c_voidkey_materials_config: *mut grpc_tls_key_materials_configstatus: grpc_ssl_certificate_config_reload_statuserror_details: *const c_charconfig: *mut grpc_tls_credential_reload_configcontext: *mut c_voiddestroy_context: Option<unsafe extern "C" fn(ctx: *mut c_void)>

Trait Implementations

impl Clone for grpc_tls_credential_reload_arg[src]

impl Copy for grpc_tls_credential_reload_arg[src]

impl Debug for grpc_tls_credential_reload_arg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.