@@ -1963,22 +1963,22 @@ impl<'a> Easy<'a> {
1963
1963
enable as c_long )
1964
1964
}
1965
1965
1966
- /// Stores a private pointer-sized piece of data.
1967
- ///
1968
- /// This can be retrieved through the `private` function and otherwise
1969
- /// libcurl does not tamper with this value. This corresponds to
1970
- /// `CURLOPT_PRIVATE` and defaults to 0.
1971
- pub fn set_private ( & mut self , private : usize ) -> Result < ( ) , Error > {
1972
- self . setopt_ptr ( curl_sys:: CURLOPT_PRIVATE , private as * const _ )
1973
- }
1966
+ // // / Stores a private pointer-sized piece of data.
1967
+ // // /
1968
+ // // / This can be retrieved through the `private` function and otherwise
1969
+ // // / libcurl does not tamper with this value. This corresponds to
1970
+ // // / `CURLOPT_PRIVATE` and defaults to 0.
1971
+ // pub fn set_private(&mut self, private: usize) -> Result<(), Error> {
1972
+ // self.setopt_ptr(curl_sys::CURLOPT_PRIVATE, private as *const _)
1973
+ // }
1974
1974
1975
- /// Fetches this handle's private pointer-sized piece of data.
1976
- ///
1977
- /// This corresponds to
1978
- /// `CURLINFO_PRIVATE` and defaults to 0.
1979
- pub fn private ( & mut self ) -> Result < usize , Error > {
1980
- self . getopt_ptr ( curl_sys:: CURLINFO_PRIVATE ) . map ( |p| p as usize )
1981
- }
1975
+ // // / Fetches this handle's private pointer-sized piece of data.
1976
+ // // /
1977
+ // // / This corresponds to
1978
+ // // / `CURLINFO_PRIVATE` and defaults to 0.
1979
+ // pub fn private(&mut self) -> Result<usize, Error> {
1980
+ // self.getopt_ptr(curl_sys::CURLINFO_PRIVATE).map(|p| p as usize)
1981
+ // }
1982
1982
1983
1983
// =========================================================================
1984
1984
// getters
@@ -2308,17 +2308,18 @@ impl<'a> Easy<'a> {
2308
2308
default_configure ( self ) ;
2309
2309
}
2310
2310
2311
- /// Re-initializes this handle to all the default values *and* resets the
2312
- /// lifetime associated with this handle .
2311
+ /// Re-initializes all lifetime-related configuration of this handle and
2312
+ /// returns a handle with a new associated lifetime .
2313
2313
///
2314
2314
/// The lifetime on this handle is currently used to prevent storing
2315
2315
/// configuration which references data that lives shorter than this handle
2316
2316
/// (e.g. preventing use-after-free). This can make it difficult, however,
2317
2317
/// to reuse an `Easy` handle as the lifetime of callbacks may be limited to
2318
2318
/// a smaller scope.
2319
2319
///
2320
- /// This will have the same effect as `reset`, plus the additional effect of
2321
- /// returning a handle with a new arbitrary lifetime.
2320
+ /// This will have the same effect as `reset` for any configuration option
2321
+ /// that is also bounded by this handle's lifetime, plus the additional
2322
+ /// effect of returning a handle with a new arbitrary lifetime.
2322
2323
pub fn reset_lifetime < ' b > ( mut self ) -> Easy < ' b > {
2323
2324
self . reset ( ) ;
2324
2325
let new = Easy { handle : self . handle , _marker : marker:: PhantomData } ;
0 commit comments