From 5663422cb05b564b42650398b8a007552a22870b Mon Sep 17 00:00:00 2001 From: rbran Date: Sun, 5 Apr 2026 10:54:38 -0300 Subject: [PATCH] [Rust] add the process step for the creation of a custom binary view --- rust/src/custom_binary_view.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/custom_binary_view.rs b/rust/src/custom_binary_view.rs index 8c880fc17..578ff49b4 100644 --- a/rust/src/custom_binary_view.rs +++ b/rust/src/custom_binary_view.rs @@ -460,6 +460,7 @@ pub unsafe trait CustomBinaryView: 'static + BinaryViewBase + Sync + Sized { fn new(handle: &BinaryView, args: &Self::Args) -> Result; fn init(&mut self, args: Self::Args) -> Result<()>; + fn process(&self) -> Result<()>; fn on_after_snapshot_data_applied(&mut self) {} } @@ -584,7 +585,7 @@ impl<'a, T: CustomBinaryViewType> CustomViewBuilder<'a, T> { Ok(_) => { // put the initialized state context.state = CustomViewContextState::Initialized { view }; - true + context.assume_init_ref().process().is_ok() } Err(_) => { tracing::error!(