pub struct ChannelParser;Expand description
Parser for Tauri Channel parameters in command signatures
Implementations§
Source§impl ChannelParser
impl ChannelParser
pub fn new() -> Self
Sourcepub fn extract_channels_from_command(
&self,
func: &ItemFn,
command_name: &str,
file_path: &Path,
type_resolver: &mut TypeResolver,
) -> Result<Vec<ChannelInfo>, Box<dyn Error>>
pub fn extract_channels_from_command( &self, func: &ItemFn, command_name: &str, file_path: &Path, type_resolver: &mut TypeResolver, ) -> Result<Vec<ChannelInfo>, Box<dyn Error>>
Extract channel parameters from a command function signature
Looks for parameters with type Channel
Trait Implementations§
Source§impl Debug for ChannelParser
impl Debug for ChannelParser
Auto Trait Implementations§
impl Freeze for ChannelParser
impl RefUnwindSafe for ChannelParser
impl Send for ChannelParser
impl Sync for ChannelParser
impl Unpin for ChannelParser
impl UnwindSafe for ChannelParser
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