Struct openssl::bio::MemBio [-]  [+] [src]

pub struct MemBio {
    // some fields omitted
}

Methods

impl MemBio

fn new() -> Result<MemBio, SslError>

Creates a new owned memory based BIO

fn borrowed(bio: *mut BIO) -> MemBio

Returns a "borrow", i.e. it has no ownership

unsafe fn unwrap(self) -> *mut BIO

Consumes current bio and returns wrapped value Note that data ownership is lost and should be managed manually

unsafe fn get_handle(&self) -> *mut BIO

Temporarily gets wrapped value

Trait Implementations

impl Drop for MemBio

fn drop(&mut self)

impl Reader for MemBio

fn read(&mut self, buf: &mut [u8]) -> IoResult<usize>

fn read_at_least(&mut self, min: usize, buf: &mut [u8]) -> Result<usize, IoError>

fn read_byte(&mut self) -> Result<u8, IoError>

fn push(&mut self, len: usize, buf: &mut Vec<u8>) -> Result<usize, IoError>

fn push_at_least(&mut self, min: usize, len: usize, buf: &mut Vec<u8>) -> Result<usize, IoError>

fn read_exact(&mut self, len: usize) -> Result<Vec<u8>, IoError>

fn read_to_end(&mut self) -> Result<Vec<u8>, IoError>

fn read_to_string(&mut self) -> Result<String, IoError>

fn read_le_uint_n(&mut self, nbytes: usize) -> Result<u64, IoError>

fn read_le_int_n(&mut self, nbytes: usize) -> Result<i64, IoError>

fn read_be_uint_n(&mut self, nbytes: usize) -> Result<u64, IoError>

fn read_be_int_n(&mut self, nbytes: usize) -> Result<i64, IoError>

fn read_le_uint(&mut self) -> Result<usize, IoError>

fn read_le_int(&mut self) -> Result<isize, IoError>

fn read_be_uint(&mut self) -> Result<usize, IoError>

fn read_be_int(&mut self) -> Result<isize, IoError>

fn read_be_u64(&mut self) -> Result<u64, IoError>

fn read_be_u32(&mut self) -> Result<u32, IoError>

fn read_be_u16(&mut self) -> Result<u16, IoError>

fn read_be_i64(&mut self) -> Result<i64, IoError>

fn read_be_i32(&mut self) -> Result<i32, IoError>

fn read_be_i16(&mut self) -> Result<i16, IoError>

fn read_be_f64(&mut self) -> Result<f64, IoError>

fn read_be_f32(&mut self) -> Result<f32, IoError>

fn read_le_u64(&mut self) -> Result<u64, IoError>

fn read_le_u32(&mut self) -> Result<u32, IoError>

fn read_le_u16(&mut self) -> Result<u16, IoError>

fn read_le_i64(&mut self) -> Result<i64, IoError>

fn read_le_i32(&mut self) -> Result<i32, IoError>

fn read_le_i16(&mut self) -> Result<i16, IoError>

fn read_le_f64(&mut self) -> Result<f64, IoError>

fn read_le_f32(&mut self) -> Result<f32, IoError>

fn read_u8(&mut self) -> Result<u8, IoError>

fn read_i8(&mut self) -> Result<i8, IoError>

impl Writer for MemBio

fn write(&mut self, buf: &[u8]) -> IoResult<()>

fn flush(&mut self) -> Result<(), IoError>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), IoError>

fn write_str(&mut self, s: &str) -> Result<(), IoError>

fn write_line(&mut self, s: &str) -> Result<(), IoError>

fn write_char(&mut self, c: char) -> Result<(), IoError>

fn write_int(&mut self, n: isize) -> Result<(), IoError>

fn write_uint(&mut self, n: usize) -> Result<(), IoError>

fn write_le_uint(&mut self, n: usize) -> Result<(), IoError>

fn write_le_int(&mut self, n: isize) -> Result<(), IoError>

fn write_be_uint(&mut self, n: usize) -> Result<(), IoError>

fn write_be_int(&mut self, n: isize) -> Result<(), IoError>

fn write_be_u64(&mut self, n: u64) -> Result<(), IoError>

fn write_be_u32(&mut self, n: u32) -> Result<(), IoError>

fn write_be_u16(&mut self, n: u16) -> Result<(), IoError>

fn write_be_i64(&mut self, n: i64) -> Result<(), IoError>

fn write_be_i32(&mut self, n: i32) -> Result<(), IoError>

fn write_be_i16(&mut self, n: i16) -> Result<(), IoError>

fn write_be_f64(&mut self, f: f64) -> Result<(), IoError>

fn write_be_f32(&mut self, f: f32) -> Result<(), IoError>

fn write_le_u64(&mut self, n: u64) -> Result<(), IoError>

fn write_le_u32(&mut self, n: u32) -> Result<(), IoError>

fn write_le_u16(&mut self, n: u16) -> Result<(), IoError>

fn write_le_i64(&mut self, n: i64) -> Result<(), IoError>

fn write_le_i32(&mut self, n: i32) -> Result<(), IoError>

fn write_le_i16(&mut self, n: i16) -> Result<(), IoError>

fn write_le_f64(&mut self, f: f64) -> Result<(), IoError>

fn write_le_f32(&mut self, f: f32) -> Result<(), IoError>

fn write_u8(&mut self, n: u8) -> Result<(), IoError>

fn write_i8(&mut self, n: i8) -> Result<(), IoError>