Struct sequoia_openpgp::parse::Cookie [−][src]
pub struct Cookie { /* fields omitted */ }Expand description
Private state used by the PacketParser.
This is not intended to be used. It is possible to explicitly
create Cookie instances using its Default implementation for
low-level interfacing with parsing code.
Trait Implementations
Ensures that the internal buffer has at least amount bytes
of data, and returns it. Read more
Like data(), but returns an error if there is not at least
amount bytes available. Read more
A convenience function that combines data() and consume(). Read more
A convenience function that effectively combines data_hard()
and consume(). Read more
Returns a mutable reference to the inner BufferedReader, if
any. Read more
Returns a reference to the inner BufferedReader, if any.
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
Returns the underlying reader, if any. Read more
Sets the BufferedReader’s cookie and returns the old value.
Returns a reference to the BufferedReader’s cookie.
Returns a mutable reference to the BufferedReader’s cookie.
Returns all of the data until EOF. Like data(), this does not
actually consume the data that is read. Read more
Checks whether this reader is consummated. Read more
A convenience function for reading a 16-bit unsigned integer in big endian format. Read more
A convenience function for reading a 32-bit unsigned integer in big endian format. Read more
Reads until either terminal is encountered or EOF. Read more
Discards the input until one of the bytes in terminals is encountered. Read more
Discards the input until one of the bytes in terminals is
encountered. Read more
Like data_consume_hard(), but returns the data in a
caller-owned buffer. Read more
Like steal(), but instead of stealing a fixed number of
bytes, steals all of the data until the end of file. Read more
Like steal_eof(), but instead of returning the data, the
data is discarded. Read more
A helpful debugging aid to pretty print a Buffered Reader stack. Read more
Boxes the reader.
This interface allows a caller to read the content of a
PacketParser using the BufferedReader interface. This is
essential to supporting streaming operation.
Note: it is safe to mix the use of the std::io::Read and
BufferedReader interfaces.
Ensures that the internal buffer has at least amount bytes
of data, and returns it. Read more
Like data(), but returns an error if there is not at least
amount bytes available. Read more
Returns all of the data until EOF. Like data(), this does not
actually consume the data that is read. Read more
A convenience function that combines data() and consume(). Read more
A convenience function that effectively combines data_hard()
and consume(). Read more
Like data_consume_hard(), but returns the data in a
caller-owned buffer. Read more
Like steal(), but instead of stealing a fixed number of
bytes, steals all of the data until the end of file. Read more
Returns a mutable reference to the inner BufferedReader, if
any. Read more
Returns a reference to the inner BufferedReader, if any.
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
Returns the underlying reader, if any. Read more
Sets the BufferedReader’s cookie and returns the old value.
Returns a reference to the BufferedReader’s cookie.
Returns a mutable reference to the BufferedReader’s cookie.
Checks whether this reader is consummated. Read more
A convenience function for reading a 16-bit unsigned integer in big endian format. Read more
A convenience function for reading a 32-bit unsigned integer in big endian format. Read more
Reads until either terminal is encountered or EOF. Read more
Discards the input until one of the bytes in terminals is encountered. Read more
Discards the input until one of the bytes in terminals is
encountered. Read more
Like steal_eof(), but instead of returning the data, the
data is discarded. Read more
A helpful debugging aid to pretty print a Buffered Reader stack. Read more
Boxes the reader.