pub enum MergeResult<'a> {
Keep,
DataRef(&'a [u8]),
Data(Vec<u8>),
}
Expand description
The data type returned by the merge callback.
See, for instance, CertD::insert
.
Variants§
Keep
Keep the on-disk version.
DataRef(&'a [u8])
Use the specified version.
This is usually a merged version of the on-disk version and the new version of the certificate.
Data(Vec<u8>)
Use the specified version.
This is usually a merged version of the on-disk version and the new version of the certificate.
Trait Implementations§
Source§impl<'a> From<&'a [u8]> for MergeResult<'a>
impl<'a> From<&'a [u8]> for MergeResult<'a>
Auto Trait Implementations§
impl<'a> Freeze for MergeResult<'a>
impl<'a> RefUnwindSafe for MergeResult<'a>
impl<'a> Send for MergeResult<'a>
impl<'a> Sync for MergeResult<'a>
impl<'a> Unpin for MergeResult<'a>
impl<'a> UnwindSafe for MergeResult<'a>
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