Struct grpcio_sys::grpc_tls_server_authorization_check_arg[][src]

#[repr(C)]
pub struct grpc_tls_server_authorization_check_arg {
Show 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

impl Clone for grpc_tls_server_authorization_check_arg[src]

fn clone(&self) -> grpc_tls_server_authorization_check_arg[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for grpc_tls_server_authorization_check_arg[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy for grpc_tls_server_authorization_check_arg[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.