pub enum FunctionRestorePolicy {
Append,
Flush,
Replace,
}Expand description
Policy option for the function_restore command.
Variants§
Append
Appends the restored libraries to the existing libraries and aborts on collision. This is the default policy.
Flush
Deletes all existing libraries before restoring the payload.
Replace
appends the restored libraries to the existing libraries, replacing any existing ones in case of name collisions. Note that this policy doesn’t prevent function name collisions, only libraries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionRestorePolicy
impl RefUnwindSafe for FunctionRestorePolicy
impl Send for FunctionRestorePolicy
impl Sync for FunctionRestorePolicy
impl Unpin for FunctionRestorePolicy
impl UnwindSafe for FunctionRestorePolicy
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