Lines Matching refs:index
1557 /// Sets the extra data at the specified index.
1562 pub fn set_ex_data<T>(&mut self, index: Index<SslContext, T>, data: T) {
1563 self.set_ex_data_inner(index, data);
1566 fn set_ex_data_inner<T>(&mut self, index: Index<SslContext, T>, data: T) -> *mut c_void {
1569 ffi::SSL_CTX_set_ex_data(self.as_ptr(), index.as_raw(), data);
1763 /// Returns a new extra data index.
1765 /// Each invocation of this function is guaranteed to return a distinct index. These can be used
1839 /// Returns a reference to the extra data at the specified index.
1841 pub fn ex_data<T>(&self, index: Index<SslContext, T>) -> Option<&T> {
1843 let data = ffi::SSL_CTX_get_ex_data(self.as_ptr(), index.as_raw());
2213 /// Returns a new extra data index.
2215 /// Each invocation of this function is guaranteed to return a distinct index. These can be used
2925 /// Sets the extra data at the specified index.
2930 pub fn set_ex_data<T>(&mut self, index: Index<Ssl, T>, data: T) {
2935 index.as_raw(),
2941 /// Returns a reference to the extra data at the specified index.
2943 pub fn ex_data<T>(&self, index: Index<Ssl, T>) -> Option<&T> {
2945 let data = ffi::SSL_get_ex_data(self.as_ptr(), index.as_raw());
2954 /// Returns a mutable reference to the extra data at the specified index.
2956 pub fn ex_data_mut<T>(&mut self, index: Index<Ssl, T>) -> Option<&mut T> {
2958 let data = ffi::SSL_get_ex_data(self.as_ptr(), index.as_raw());