Struct gpgme::data::Data
[−]
[src]
pub struct Data<'a> { // some fields omitted }
Methods
impl<'a> Data<'a>
fn stdin() -> Result<Data<'static>>
fn stdout() -> Result<Data<'static>>
fn stderr() -> Result<Data<'static>>
fn new() -> Result<Data<'static>>
Constructs an empty data object.
fn load<P: Into<Vec<u8>>>(path: P) -> Result<Data<'static>>
Constructs a data object and fills it with the contents of the file
referenced by path
.
fn from_bytes<B: AsRef<[u8]>>(bytes: B) -> Result<Data<'static>>
Constructs a data object and fills it with a copy of bytes
.
fn from_buffer<B: AsRef<[u8]> + ?Sized>(buf: &B) -> Result<Data>
Constructs a data object which copies from buf
as needed.