Skip to main content

XmlKeyStoreImporter

Struct XmlKeyStoreImporter 

Source
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>

Source

pub fn new(policy: &'a P, backend: XmlBackend) -> Result<Self, KeyStoreError>

Bind this session to the caller’s immutable policy and XML backend.

Source

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.

Source

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.

Source

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>
where &'a P: Send,

§

impl<'a, P> Unpin for XmlKeyStoreImporter<'a, P>
where &'a P: Unpin,

§

impl<'a, P> UnsafeUnpin for XmlKeyStoreImporter<'a, P>

§

impl<'a, P> UnwindSafe for XmlKeyStoreImporter<'a, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.