Struct sasl2_sys::saslplug::sasl_client_plug
source · #[repr(C)]pub struct sasl_client_plug {Show 13 fields
pub mech_name: *const c_char,
pub max_ssf: sasl_ssf_t,
pub security_flags: c_uint,
pub features: c_uint,
pub required_prompts: *const c_ulong,
pub glob_context: *mut c_void,
pub mech_new: Option<unsafe extern "C" fn(glob_context: *mut c_void, cparams: *mut sasl_client_params_t, conn_context: *mut *mut c_void) -> c_int>,
pub mech_step: Option<unsafe extern "C" fn(conn_context: *mut c_void, cparams: *mut sasl_client_params_t, serverin: *const c_char, serverinlen: c_uint, prompt_need: *mut *mut sasl_interact_t, clientout: *mut *const c_char, clientoutlen: *mut c_uint, oparams: *mut sasl_out_params_t) -> c_int>,
pub mech_dispose: Option<unsafe extern "C" fn(conn_context: *mut c_void, utils: *const sasl_utils_t)>,
pub mech_free: Option<unsafe extern "C" fn(glob_context: *mut c_void, utils: *const sasl_utils_t)>,
pub idle: Option<unsafe extern "C" fn(glob_context: *mut c_void, conn_context: *mut c_void, cparams: *mut sasl_client_params_t) -> c_int>,
pub spare_fptr1: Option<unsafe extern "C" fn() -> c_int>,
pub spare_fptr2: Option<unsafe extern "C" fn() -> c_int>,
}
Fields§
§mech_name: *const c_char
§max_ssf: sasl_ssf_t
§security_flags: c_uint
§features: c_uint
§required_prompts: *const c_ulong
§glob_context: *mut c_void
§mech_new: Option<unsafe extern "C" fn(glob_context: *mut c_void, cparams: *mut sasl_client_params_t, conn_context: *mut *mut c_void) -> c_int>
§mech_step: Option<unsafe extern "C" fn(conn_context: *mut c_void, cparams: *mut sasl_client_params_t, serverin: *const c_char, serverinlen: c_uint, prompt_need: *mut *mut sasl_interact_t, clientout: *mut *const c_char, clientoutlen: *mut c_uint, oparams: *mut sasl_out_params_t) -> c_int>
§mech_dispose: Option<unsafe extern "C" fn(conn_context: *mut c_void, utils: *const sasl_utils_t)>
§mech_free: Option<unsafe extern "C" fn(glob_context: *mut c_void, utils: *const sasl_utils_t)>
§idle: Option<unsafe extern "C" fn(glob_context: *mut c_void, conn_context: *mut c_void, cparams: *mut sasl_client_params_t) -> c_int>
§spare_fptr1: Option<unsafe extern "C" fn() -> c_int>
§spare_fptr2: Option<unsafe extern "C" fn() -> c_int>
Trait Implementations§
source§impl Clone for sasl_client_plug
impl Clone for sasl_client_plug
source§fn clone(&self) -> sasl_client_plug
fn clone(&self) -> sasl_client_plug
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for sasl_client_plug
impl Debug for sasl_client_plug
impl Copy for sasl_client_plug
Auto Trait Implementations§
impl Freeze for sasl_client_plug
impl RefUnwindSafe for sasl_client_plug
impl !Send for sasl_client_plug
impl !Sync for sasl_client_plug
impl Unpin for sasl_client_plug
impl UnwindSafe for sasl_client_plug
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more