Skip to main content

AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback

Trait AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback 

Source
pub trait AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback {
    // Required method
    fn handle_aeron_archive_credentials_encoded_credentials_supplier_func(
        &mut self,
    ) -> *mut aeron_archive_encoded_credentials_t;
}
Expand description

Callback to return encoded credentials.

@return encoded credentials to include with the connect request

(note you must copy any arguments that you use afterwards even those with static lifetimes)

Required Methods§

Implementors§

Source§

impl AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback for AeronArchiveCredentialsEncodedCredentialsSupplierFuncLogger

Source§

impl AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback for NoHandler

Source§

impl<F: FnMut() -> *mut aeron_archive_encoded_credentials_t> AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback 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.

Source§

impl<T: AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback> AeronArchiveCredentialsEncodedCredentialsSupplierFuncCallback for Handler<T>

Pass an existing Handler clone anywhere a callback value is expected, e.g. to share one callback instance across several registrations.