pub struct Attach { /* private fields */ }Expand description
What plugins register while a processor freezes.
Implementations§
Source§impl Attach
impl Attach
Sourcepub fn set_parser(
&mut self,
factory: impl FnOnce(&Slots) -> Result<Box<dyn Parser>, Error> + 'static,
)
pub fn set_parser( &mut self, factory: impl FnOnce(&Slots) -> Result<Box<dyn Parser>, Error> + 'static, )
Set the parser, built once every plugin has attached, so it sees all their slots.
Sourcepub fn set_compiler(
&mut self,
factory: impl FnOnce(&Slots) -> Result<Box<dyn Compiler>, Error> + 'static,
)
pub fn set_compiler( &mut self, factory: impl FnOnce(&Slots) -> Result<Box<dyn Compiler>, Error> + 'static, )
Set the compiler, built once every plugin has attached.
pub fn add_transform(&mut self, transform: Box<dyn Transform>)
pub fn slots_mut(&mut self) -> &mut Slots
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Attach
impl !Send for Attach
impl !Sync for Attach
impl !UnwindSafe for Attach
impl Freeze for Attach
impl Unpin for Attach
impl UnsafeUnpin for Attach
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