pub trait AeronArchiveCredentialsChallengeSupplierFuncCallback {
// Required method
fn handle_aeron_archive_credentials_challenge_supplier_func(
&mut self,
encoded_challenge: &AeronArchiveEncodedCredentials,
) -> *mut aeron_archive_encoded_credentials_t;
}Expand description
Callback to return encoded credentials given a specific encoded challenge.
@param encoded_challenge to use to generate the encoded credentials @return encoded credentials to include with the challenge response
(note wrapper arguments are borrowed for the call only; copy out any fields, including strings, you use afterwards)
Required Methods§
fn handle_aeron_archive_credentials_challenge_supplier_func( &mut self, encoded_challenge: &AeronArchiveEncodedCredentials, ) -> *mut aeron_archive_encoded_credentials_t
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl AeronArchiveCredentialsChallengeSupplierFuncCallback for AeronArchiveCredentialsChallengeSupplierFuncLogger
impl AeronArchiveCredentialsChallengeSupplierFuncCallback for AeronArchiveCredentialsChallengeSupplierFuncSlot
impl AeronArchiveCredentialsChallengeSupplierFuncCallback for NoHandler
impl<F: FnMut(&AeronArchiveEncodedCredentials) -> *mut aeron_archive_encoded_credentials_t> AeronArchiveCredentialsChallengeSupplierFuncCallback for F
Any closure with the matching signature is a callback: methods that retain it
heap-allocate it into a Handler owned by the registering resource.
impl<T: AeronArchiveCredentialsChallengeSupplierFuncCallback> AeronArchiveCredentialsChallengeSupplierFuncCallback for Handler<T>
Pass an existing Handler clone anywhere a callback value is expected, e.g.
to share one callback instance across several registrations.