Struct gpgme::Data [−][src]
pub struct Data<'data>(_, _);
Expand description
Upstream documentation:
gpgme_data_t
Implementations
Constructs an empty data object.
Upstream documentation:
gpgme_data_new
Constructs a data object and fills it with the contents of the file
referenced by path
.
Upstream documentation:
gpgme_data_new_from_file
Constructs a data object and fills it with a copy of bytes
.
Upstream documentation:
gpgme_data_new_from_mem
Constructs a data object which copies from buf
as needed.
Upstream documentation:
gpgme_data_new_from_mem
Upstream documentation:
gpgme_data_new_from_fd
Upstream documentation:
gpgme_data_new_from_stream
pub fn from_seekable_reader<R>(r: R) -> Result<Self, WrappedError<R>> where
R: Read + Seek + Send + 'data,
pub fn from_seekable_writer<W>(w: W) -> Result<Self, WrappedError<W>> where
W: Write + Seek + Send + 'data,
pub fn from_stream<S: Send>(s: S) -> Result<Self, WrappedError<S>> where
S: Read + Write + Send + 'data,
pub fn from_seekable_stream<S>(s: S) -> Result<Self, WrappedError<S>> where
S: Read + Write + Seek + Send + 'data,
Upstream documentation:
gpgme_data_get_file_name
Upstream documentation:
gpgme_data_get_file_name
Upstream documentation:
gpgme_data_set_file_name
Upstream documentation:
gpgme_data_set_file_name
Upstream documentation:
gpgme_data_get_encoding
Upstream documentation:
gpgme_data_set_encoding
Upstream documentation:
gpgme_data_set_flag
Upstream documentation:
gpgme_data_identify
Upstream documentation:
gpgme_data_release_and_get_mem
Trait Implementations
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Like read
, except that it reads into a slice of buffers. Read more
can_vector
)Determines if this Read
er has an efficient read_vectored
implementation. Read more
read_initializer
)Determines if this Read
er can work with buffers of uninitialized
memory. Read more
Read all bytes until EOF in this source, placing them into buf
. Read more
Read all bytes until EOF in this source, appending them to buf
. Read more
Read the exact number of bytes required to fill buf
. Read more
Creates a “by reference” adapter for this instance of Read
. Read more
Creates an adapter which will chain this stream with another. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl<'data> RefUnwindSafe for Data<'data>
impl<'data> !UnwindSafe for Data<'data>
Blanket Implementations
Convert the given value into an approximately equivalent representation.
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject with the default scheme.
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.