#[repr(C)]pub struct pb_ostream_s {
pub callback: Option<unsafe extern "C" fn(stream: *mut pb_ostream_t, buf: *const pb_byte_t, count: usize) -> bool>,
pub state: *mut c_void,
pub max_size: usize,
pub bytes_written: usize,
pub errmsg: *const c_char,
}Fields§
§callback: Option<unsafe extern "C" fn(stream: *mut pb_ostream_t, buf: *const pb_byte_t, count: usize) -> bool>§state: *mut c_void§max_size: usize§bytes_written: usize§errmsg: *const c_charTrait Implementations§
Source§impl Clone for pb_ostream_s
impl Clone for pb_ostream_s
Source§fn clone(&self) -> pb_ostream_s
fn clone(&self) -> pb_ostream_s
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 pb_ostream_s
impl Debug for pb_ostream_s
impl Copy for pb_ostream_s
Auto Trait Implementations§
impl Freeze for pb_ostream_s
impl RefUnwindSafe for pb_ostream_s
impl !Send for pb_ostream_s
impl !Sync for pb_ostream_s
impl Unpin for pb_ostream_s
impl UnwindSafe for pb_ostream_s
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