[][src]Struct rpki::xml::decode::Reader

pub struct Reader<R: BufRead> { /* fields omitted */ }

An XML reader.

This struct holds all state necessary for parsing an XML documnet.

Methods

impl<R: BufRead> Reader<R>[src]

pub fn new(reader: R) -> Self[src]

Creates a new reader from an underlying reader.

pub fn start<F, E>(&mut self, op: F) -> Result<Content, E> where
    F: FnOnce(Element) -> Result<(), E>,
    E: From<Error>, 
[src]

Parse the start of the document.

This is like Content::take_element except that it also happily skips over XML and doctype declarations.

pub fn end(&mut self) -> Result<(), Error>[src]

Parse the end of the document.

This checks that the next non-comment event to be the end of file.

Auto Trait Implementations

impl<R> Send for Reader<R> where
    R: Send

impl<R> Sync for Reader<R> where
    R: Sync

impl<R> Unpin for Reader<R> where
    R: Unpin

impl<R> UnwindSafe for Reader<R> where
    R: UnwindSafe

impl<R> RefUnwindSafe for Reader<R> where
    R: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]