struct BuildIdCallbacksImpl {
api_no: Option<String>,
build_ts: Option<&'static str>,
build_debug: Option<&'static str>,
updated_build_id: bool,
}Expand description
Actual implementation of the BuildIdCallbacks callbacks.
Fields§
§api_no: Option<String>The API number to use, from the ZEND_MODULE_API_NO macro.
None until the macro is processed.
build_ts: Option<&'static str>Either ZTS or NTS, from the ZEND_BUILD_TS macro.
None until the macro is processed.
build_debug: Option<&'static str>Either an empty string or ,debug, from the ZEND_BUILD_DEBUG macro.
None until the macro is processed.
updated_build_id: boolWhether the build ID was actually updated, if this is still
false when the object is droped it will panic.
Implementations§
Source§impl BuildIdCallbacksImpl
impl BuildIdCallbacksImpl
Sourcefn read_api_no(&mut self, tokens: &Vec<Token>)
fn read_api_no(&mut self, tokens: &Vec<Token>)
Process the declaration of the ZEND_MODULE_API_NO macro.
Sourcefn read_build_ts(&mut self, tokens: &Vec<Token>)
fn read_build_ts(&mut self, tokens: &Vec<Token>)
Process the declaration of the ZEND_BUILD_TS macro.
Sourcefn read_build_debug(&mut self, tokens: &Vec<Token>)
fn read_build_debug(&mut self, tokens: &Vec<Token>)
Process the declaration of the ZEND_BUILD_DEBUG macro.
Sourcefn replace_build_id(&mut self, tokens: &mut Vec<Token>)
fn replace_build_id(&mut self, tokens: &mut Vec<Token>)
Given the tokens for the ZEND_MODULE_BUILD_ID macro, replace them with
a generated version that bindgen can use.
Trait Implementations§
Source§impl Debug for BuildIdCallbacksImpl
impl Debug for BuildIdCallbacksImpl
Source§impl Drop for BuildIdCallbacksImpl
impl Drop for BuildIdCallbacksImpl
Auto Trait Implementations§
impl Forget for BuildIdCallbacksImpl
impl Freeze for BuildIdCallbacksImpl
impl Move for BuildIdCallbacksImpl
impl RefUnwindSafe for BuildIdCallbacksImpl
impl Send for BuildIdCallbacksImpl
impl Sync for BuildIdCallbacksImpl
impl Unpin for BuildIdCallbacksImpl
impl UnsafeUnpin for BuildIdCallbacksImpl
impl UnwindSafe for BuildIdCallbacksImpl
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