#[repr(C)]pub struct aws_input_stream_vtable {
pub seek: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, offset: i64, basis: aws_stream_seek_basis) -> c_int>,
pub read: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, dest: *mut aws_byte_buf) -> c_int>,
pub get_status: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, status: *mut aws_stream_status) -> c_int>,
pub get_length: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, out_length: *mut i64) -> c_int>,
pub acquire: Option<unsafe extern "C" fn(stream: *mut aws_input_stream)>,
pub release: Option<unsafe extern "C" fn(stream: *mut aws_input_stream)>,
}
Fields
seek: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, offset: i64, basis: aws_stream_seek_basis) -> c_int>
read: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, dest: *mut aws_byte_buf) -> c_int>
Stream as much data as will fit into the destination buffer and update its length. The destination buffer’s capacity MUST NOT be changed.
Return AWS_OP_SUCCESS if the read is successful. If AWS_OP_ERR is returned, the stream is assumed to be invalid and any data written to the buffer is ignored.
If no more data is currently available, or the end of the stream has been reached, simply return AWS_OP_SUCCESS without touching the destination buffer.
get_status: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, status: *mut aws_stream_status) -> c_int>
get_length: Option<unsafe extern "C" fn(stream: *mut aws_input_stream, out_length: *mut i64) -> c_int>
acquire: Option<unsafe extern "C" fn(stream: *mut aws_input_stream)>
Optional. If not set, the default aws_ref_count_acquire/release will be used. Set for high level language binding that has its own refcounting implementation and needs to be kept alive from C. If set, ref_count member will not be used.
release: Option<unsafe extern "C" fn(stream: *mut aws_input_stream)>
Trait Implementations
sourceimpl Clone for aws_input_stream_vtable
impl Clone for aws_input_stream_vtable
sourcefn clone(&self) -> aws_input_stream_vtable
fn clone(&self) -> aws_input_stream_vtable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for aws_input_stream_vtable
impl Debug for aws_input_stream_vtable
sourceimpl Default for aws_input_stream_vtable
impl Default for aws_input_stream_vtable
sourcefn default() -> aws_input_stream_vtable
fn default() -> aws_input_stream_vtable
Returns the “default value” for a type. Read more
sourceimpl PartialEq<aws_input_stream_vtable> for aws_input_stream_vtable
impl PartialEq<aws_input_stream_vtable> for aws_input_stream_vtable
sourcefn eq(&self, other: &aws_input_stream_vtable) -> bool
fn eq(&self, other: &aws_input_stream_vtable) -> bool
impl Copy for aws_input_stream_vtable
impl Eq for aws_input_stream_vtable
impl StructuralEq for aws_input_stream_vtable
impl StructuralPartialEq for aws_input_stream_vtable
Auto Trait Implementations
impl RefUnwindSafe for aws_input_stream_vtable
impl Send for aws_input_stream_vtable
impl Sync for aws_input_stream_vtable
impl Unpin for aws_input_stream_vtable
impl UnwindSafe for aws_input_stream_vtable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more