Struct sasl2_sys::saslplug::sasl_server_plug
source · #[repr(C)]pub struct sasl_server_plug {Show 14 fields
pub mech_name: *const c_char,
pub max_ssf: sasl_ssf_t,
pub security_flags: c_uint,
pub features: c_uint,
pub glob_context: *mut c_void,
pub mech_new: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, challenge: *const c_char, challen: c_uint, conn_context: *mut *mut c_void) -> c_int>,
pub mech_step: Option<unsafe extern "C" fn(conn_context: *mut c_void, sparams: *mut sasl_server_params_t, clientin: *const c_char, clientinlen: c_uint, serverout: *mut *const c_char, serveroutlen: *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 setpass: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, user: *const c_char, pass: *const c_char, passlen: c_uint, oldpass: *const c_char, oldpasslen: c_uint, flags: c_uint) -> c_int>,
pub user_query: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, user: *const c_char, maxmech: c_int, mechlist: *mut *const c_char) -> c_int>,
pub idle: Option<unsafe extern "C" fn(glob_context: *mut c_void, conn_context: *mut c_void, sparams: *mut sasl_server_params_t) -> c_int>,
pub mech_avail: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, conn_context: *mut *mut c_void) -> 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
§glob_context: *mut c_void
§mech_new: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, challenge: *const c_char, challen: c_uint, conn_context: *mut *mut c_void) -> c_int>
§mech_step: Option<unsafe extern "C" fn(conn_context: *mut c_void, sparams: *mut sasl_server_params_t, clientin: *const c_char, clientinlen: c_uint, serverout: *mut *const c_char, serveroutlen: *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)>
§setpass: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, user: *const c_char, pass: *const c_char, passlen: c_uint, oldpass: *const c_char, oldpasslen: c_uint, flags: c_uint) -> c_int>
§user_query: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, user: *const c_char, maxmech: c_int, mechlist: *mut *const c_char) -> c_int>
§idle: Option<unsafe extern "C" fn(glob_context: *mut c_void, conn_context: *mut c_void, sparams: *mut sasl_server_params_t) -> c_int>
§mech_avail: Option<unsafe extern "C" fn(glob_context: *mut c_void, sparams: *mut sasl_server_params_t, conn_context: *mut *mut c_void) -> c_int>
§spare_fptr2: Option<unsafe extern "C" fn() -> c_int>
Trait Implementations§
source§impl Clone for sasl_server_plug
impl Clone for sasl_server_plug
source§fn clone(&self) -> sasl_server_plug
fn clone(&self) -> sasl_server_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_server_plug
impl Debug for sasl_server_plug
impl Copy for sasl_server_plug
Auto Trait Implementations§
impl Freeze for sasl_server_plug
impl RefUnwindSafe for sasl_server_plug
impl !Send for sasl_server_plug
impl !Sync for sasl_server_plug
impl Unpin for sasl_server_plug
impl UnwindSafe for sasl_server_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