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

source§

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)

Performs copy-assignment from source. Read more
source§

impl Debug for sasl_server_plug

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for sasl_server_plug

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.