Struct_snmp_session

Struct Struct_snmp_session 

Source
#[repr(C)]
pub struct Struct_snmp_session {
Show 49 fields pub version: c_long, pub retries: c_int, pub timeout: c_long, pub flags: c_ulong, pub subsession: *mut Struct_snmp_session, pub next: *mut Struct_snmp_session, pub peername: *mut c_char, pub remote_port: c_ushort, pub localname: *mut c_char, pub local_port: c_ushort, pub authenticator: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut size_t, arg3: *mut c_uchar, arg4: size_t) -> *mut c_uchar>, pub callback: netsnmp_callback, pub callback_magic: *mut c_void, pub s_errno: c_int, pub s_snmp_errno: c_int, pub sessid: c_long, pub community: *mut c_uchar, pub community_len: size_t, pub rcvMsgMaxSize: size_t, pub sndMsgMaxSize: size_t, pub isAuthoritative: c_uchar, pub contextEngineID: *mut c_uchar, pub contextEngineIDLen: size_t, pub engineBoots: c_uint, pub engineTime: c_uint, pub contextName: *mut c_char, pub contextNameLen: size_t, pub securityEngineID: *mut c_uchar, pub securityEngineIDLen: size_t, pub securityName: *mut c_char, pub securityNameLen: size_t, pub securityAuthProto: *mut oid, pub securityAuthProtoLen: size_t, pub securityAuthKey: [c_uchar; 32], pub securityAuthKeyLen: size_t, pub securityAuthLocalKey: *mut c_uchar, pub securityAuthLocalKeyLen: size_t, pub securityPrivProto: *mut oid, pub securityPrivProtoLen: size_t, pub securityPrivKey: [c_uchar; 32], pub securityPrivKeyLen: size_t, pub securityPrivLocalKey: *mut c_uchar, pub securityPrivLocalKeyLen: size_t, pub securityModel: c_int, pub securityLevel: c_int, pub paramName: *mut c_char, pub securityInfo: *mut c_void, pub transport_configuration: *mut Struct_netsnmp_container_s, pub myvoid: *mut c_void,
}

Fields§

§version: c_long§retries: c_int§timeout: c_long§flags: c_ulong§subsession: *mut Struct_snmp_session§next: *mut Struct_snmp_session§peername: *mut c_char§remote_port: c_ushort§localname: *mut c_char§local_port: c_ushort§authenticator: Option<unsafe extern "C" fn(arg1: *mut c_uchar, arg2: *mut size_t, arg3: *mut c_uchar, arg4: size_t) -> *mut c_uchar>§callback: netsnmp_callback§callback_magic: *mut c_void§s_errno: c_int§s_snmp_errno: c_int§sessid: c_long§community: *mut c_uchar§community_len: size_t§rcvMsgMaxSize: size_t§sndMsgMaxSize: size_t§isAuthoritative: c_uchar§contextEngineID: *mut c_uchar§contextEngineIDLen: size_t§engineBoots: c_uint§engineTime: c_uint§contextName: *mut c_char§contextNameLen: size_t§securityEngineID: *mut c_uchar§securityEngineIDLen: size_t§securityName: *mut c_char§securityNameLen: size_t§securityAuthProto: *mut oid§securityAuthProtoLen: size_t§securityAuthKey: [c_uchar; 32]§securityAuthKeyLen: size_t§securityAuthLocalKey: *mut c_uchar§securityAuthLocalKeyLen: size_t§securityPrivProto: *mut oid§securityPrivProtoLen: size_t§securityPrivKey: [c_uchar; 32]§securityPrivKeyLen: size_t§securityPrivLocalKey: *mut c_uchar§securityPrivLocalKeyLen: size_t§securityModel: c_int§securityLevel: c_int§paramName: *mut c_char§securityInfo: *mut c_void§transport_configuration: *mut Struct_netsnmp_container_s§myvoid: *mut c_void

Trait Implementations§

Source§

impl Clone for Struct_snmp_session

Source§

fn clone(&self) -> Self

Returns a duplicate 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 Default for Struct_snmp_session

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for Struct_snmp_session

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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>,

Source§

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>,

Source§

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.