pub struct KeyInfoParsingSession<'a> { /* private fields */ }Expand description
Shared ingestion accounting for KeyInfo elements in one operation.
Parsing charges embedded candidates and X.509 bytes before materialization; these charges are independent of later resolver inspection work and are not refunded when parsing fails. The immutable operation snapshot is borrowed.
Implementations§
Source§impl<'a> KeyInfoParsingSession<'a>
impl<'a> KeyInfoParsingSession<'a>
Sourcepub fn new(resources: &'a ResourcePolicy) -> Result<Self, ParseError>
pub fn new(resources: &'a ResourcePolicy) -> Result<Self, ParseError>
Start a session using the operation’s resource policy.
Sourcepub fn parse(&mut self, node: Node<'_, '_>) -> Result<KeyInfo, ParseError>
pub fn parse(&mut self, node: Node<'_, '_>) -> Result<KeyInfo, ParseError>
Parse another element without resetting this operation’s allowance.
Sourcepub fn parse_with_provider(
&mut self,
node: Node<'_, '_>,
provider: &dyn CryptoProvider,
) -> Result<KeyInfo, ParseError>
pub fn parse_with_provider( &mut self, node: Node<'_, '_>, provider: &dyn CryptoProvider, ) -> Result<KeyInfo, ParseError>
Parse with the operation’s explicit crypto engine and existing allowance.
Auto Trait Implementations§
impl<'a> !Freeze for KeyInfoParsingSession<'a>
impl<'a> !RefUnwindSafe for KeyInfoParsingSession<'a>
impl<'a> !Sync for KeyInfoParsingSession<'a>
impl<'a> Send for KeyInfoParsingSession<'a>
impl<'a> Unpin for KeyInfoParsingSession<'a>
impl<'a> UnsafeUnpin for KeyInfoParsingSession<'a>
impl<'a> UnwindSafe for KeyInfoParsingSession<'a>
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