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
Returns a reference to the internal buffer. Read more
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
Consumes some of the data. 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,
[src]
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
[src]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
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
where
Self: 'a,
[src]
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
where
Self: 'a,
[src]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.
Returns a reference to the internal buffer. Read more
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
Consumes some of the data. 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,
[src]
fn into_inner<'b>(
self: Box<Self>
) -> Option<Box<dyn BufferedReader<Cookie> + 'b>> where
Self: 'b,
[src]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
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
where
Self: 'a,
[src]
fn as_boxed<'a>(self) -> Box<dyn BufferedReader<C> + 'a, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
A: Allocator + 'static,
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;
where
Self: 'a,
[src]Boxes the reader.
Auto Trait Implementations
impl !RefUnwindSafe for Cookie
impl !UnwindSafe for Cookie