#[repr(C)]pub struct sockbuf_io {
pub sbi_setup: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, arg: *mut c_void) -> c_int>,
pub sbi_remove: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc) -> c_int>,
pub sbi_ctrl: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, opt: c_int, arg: *mut c_void) -> c_int>,
pub sbi_read: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, buf: *mut c_void, len: ber_len_t) -> ber_slen_t>,
pub sbi_write: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, buf: *mut c_void, len: ber_len_t) -> ber_slen_t>,
pub sbi_close: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc) -> c_int>,
}
Fields§
§sbi_setup: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, arg: *mut c_void) -> c_int>
§sbi_remove: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc) -> c_int>
§sbi_ctrl: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, opt: c_int, arg: *mut c_void) -> c_int>
§sbi_read: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, buf: *mut c_void, len: ber_len_t) -> ber_slen_t>
§sbi_write: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc, buf: *mut c_void, len: ber_len_t) -> ber_slen_t>
§sbi_close: Option<unsafe extern "C" fn(sbiod: *mut Sockbuf_IO_Desc) -> c_int>
Trait Implementations§
Source§impl Clone for sockbuf_io
impl Clone for sockbuf_io
Source§fn clone(&self) -> sockbuf_io
fn clone(&self) -> sockbuf_io
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for sockbuf_io
impl Debug for sockbuf_io
impl Copy for sockbuf_io
Auto Trait Implementations§
impl Freeze for sockbuf_io
impl RefUnwindSafe for sockbuf_io
impl Send for sockbuf_io
impl Sync for sockbuf_io
impl Unpin for sockbuf_io
impl UnwindSafe for sockbuf_io
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more