pub struct HandlerInfo {
pub name: &'static str,
pub signature_type: HandlerSignatureType,
pub param_types: &'static [&'static str],
pub return_type: &'static str,
pub source_file: &'static str,
pub source_line: u32,
}Expand description
Metadata structure emitted by #[ui_handler] macro for build-time registration
Fields§
§name: &'static strUnique handler name referenced in XML
signature_type: HandlerSignatureTypeHandler signature classification
param_types: &'static [&'static str]Parameter type names for validation
return_type: &'static strReturn type name
source_file: &'static strSource file location for error messages
source_line: u32Source line number
Implementations§
Source§impl HandlerInfo
impl HandlerInfo
Sourcepub fn to_signature(&self) -> HandlerSignature
pub fn to_signature(&self) -> HandlerSignature
Convert HandlerInfo to HandlerSignature for code generation.
This bridges the metadata emitted by #[ui_handler] with the signature format expected by the code generator.
§Returns
A HandlerSignature suitable for use with generate_application()
Trait Implementations§
Source§impl Clone for HandlerInfo
impl Clone for HandlerInfo
Source§fn clone(&self) -> HandlerInfo
fn clone(&self) -> HandlerInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HandlerInfo
impl RefUnwindSafe for HandlerInfo
impl Send for HandlerInfo
impl Sync for HandlerInfo
impl Unpin for HandlerInfo
impl UnwindSafe for HandlerInfo
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