pub struct FunctionRegistration { /* private fields */ }Expand description
A stable application declaration, supplied when its patch supervisor starts. Changing registrations is a build-input change and requires process replacement.
Implementations§
Source§impl FunctionRegistration
impl FunctionRegistration
Sourcepub fn callback(source: impl Into<String>, function: impl Into<String>) -> Self
pub fn callback(source: impl Into<String>, function: impl Into<String>) -> Self
A handler or command whose updated body takes effect on its next invocation. Register the function here and invoke it through a patch-aware callback helper.
Sourcepub fn view_builder(
source: impl Into<String>,
function: impl Into<String>,
views: impl IntoIterator<Item = String>,
) -> Self
pub fn view_builder( source: impl Into<String>, function: impl Into<String>, views: impl IntoIterator<Item = String>, ) -> Self
A synchronous builder which explicitly requests reapplication of these views. View identifiers belong to the application; the view transaction must resolve them to reversible adapters. At least one nonempty identifier is required.
Trait Implementations§
Source§impl Clone for FunctionRegistration
impl Clone for FunctionRegistration
Auto Trait Implementations§
impl Freeze for FunctionRegistration
impl RefUnwindSafe for FunctionRegistration
impl Send for FunctionRegistration
impl Sync for FunctionRegistration
impl Unpin for FunctionRegistration
impl UnsafeUnpin for FunctionRegistration
impl UnwindSafe for FunctionRegistration
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