Struct grpcio_sys::grpc_tls_server_authorization_check_arg [−][src]
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_cb
cb_user_data: *mut c_void
success: c_int
target_name: *const c_char
peer_cert: *const c_char
peer_cert_full_chain: *const c_char
subject_alternative_names: *mut *mut c_char
subject_alternative_names_size: usize
status: Type
error_details: *mut grpc_tls_error_details
config: *mut grpc_tls_server_authorization_check_config
context: *mut c_void
destroy_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]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for grpc_tls_server_authorization_check_arg
[src]
impl Debug for grpc_tls_server_authorization_check_arg
[src]
Auto Trait Implementations
impl RefUnwindSafe for grpc_tls_server_authorization_check_arg
impl !Send for grpc_tls_server_authorization_check_arg
impl !Sync for grpc_tls_server_authorization_check_arg
impl Unpin for grpc_tls_server_authorization_check_arg
impl UnwindSafe for grpc_tls_server_authorization_check_arg
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,