pub enum FunctionRestorePolicy {
Default,
Append,
Flush,
Replace,
}
Expand description
Policy option for the function_restore
command.
Variants§
Default
Append
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§
Source§impl Default for FunctionRestorePolicy
impl Default for FunctionRestorePolicy
Source§impl IntoArgs for FunctionRestorePolicy
impl IntoArgs for FunctionRestorePolicy
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
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