pub struct XmlKeyStoreImporter<'a, P: XmlDocumentPolicy> { /* private fields */ }Expand description
Import session for multiple XML key stores under one operation snapshot. Failed attempts retain their inspection and parser-work charges. Successful stores are moved into the inventory, never cloned.
Implementations§
Source§impl<'a, P: XmlDocumentPolicy> XmlKeyStoreImporter<'a, P>
impl<'a, P: XmlDocumentPolicy> XmlKeyStoreImporter<'a, P>
Sourcepub fn new(policy: &'a P, backend: XmlBackend) -> Result<Self, KeyStoreError>
pub fn new(policy: &'a P, backend: XmlBackend) -> Result<Self, KeyStoreError>
Bind this session to the caller’s immutable policy and XML backend.
Sourcepub fn with_live_material(
policy: &'a P,
backend: XmlBackend,
live_material_bytes: usize,
) -> Result<Self, KeyStoreError>
pub fn with_live_material( policy: &'a P, backend: XmlBackend, live_material_bytes: usize, ) -> Result<Self, KeyStoreError>
Bind import accounting to material already retained by the operation. This is usage, not a second policy limit; it remains live until finish.
Sourcepub fn import(&mut self, bytes: &[u8]) -> Result<(), KeyStoreError>
pub fn import(&mut self, bytes: &[u8]) -> Result<(), KeyStoreError>
Import a file without resetting work budgets. Failure leaves stored keys unchanged, but does not refund work already performed.
Sourcepub fn finish(self) -> KeyInventory
pub fn finish(self) -> KeyInventory
Finish the import session and transfer ownership of the complete inventory.
Auto Trait Implementations§
impl<'a, P> !Freeze for XmlKeyStoreImporter<'a, P>
impl<'a, P> !RefUnwindSafe for XmlKeyStoreImporter<'a, P>
impl<'a, P> !Sync for XmlKeyStoreImporter<'a, P>
impl<'a, P> Send for XmlKeyStoreImporter<'a, P>
impl<'a, P> Unpin for XmlKeyStoreImporter<'a, P>
impl<'a, P> UnsafeUnpin for XmlKeyStoreImporter<'a, P>where
&'a P: UnsafeUnpin,
impl<'a, P> UnwindSafe for XmlKeyStoreImporter<'a, P>where
&'a P: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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