Struct panda_sys::_GIOChannel

source ·
#[repr(C)]
pub struct _GIOChannel {
Show 16 fields pub ref_count: gint, pub funcs: *mut GIOFuncs, pub encoding: *mut gchar, pub read_cd: GIConv, pub write_cd: GIConv, pub line_term: *mut gchar, pub line_term_len: guint, pub buf_size: gsize, pub read_buf: *mut GString, pub encoded_read_buf: *mut GString, pub write_buf: *mut GString, pub partial_write_buf: [gchar; 6], pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1]>, pub reserved1: gpointer, pub reserved2: gpointer,
}

Fields§

§ref_count: gint§funcs: *mut GIOFuncs§encoding: *mut gchar§read_cd: GIConv§write_cd: GIConv§line_term: *mut gchar§line_term_len: guint§buf_size: gsize§read_buf: *mut GString§encoded_read_buf: *mut GString§write_buf: *mut GString§partial_write_buf: [gchar; 6]§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 1]>§reserved1: gpointer§reserved2: gpointer

Implementations§

source§

impl _GIOChannel

source

pub fn use_buffer(&self) -> guint

source

pub fn set_use_buffer(&mut self, val: guint)

source

pub fn do_encode(&self) -> guint

source

pub fn set_do_encode(&mut self, val: guint)

source

pub fn close_on_unref(&self) -> guint

source

pub fn set_close_on_unref(&mut self, val: guint)

source

pub fn is_readable(&self) -> guint

source

pub fn set_is_readable(&mut self, val: guint)

source

pub fn is_writeable(&self) -> guint

source

pub fn set_is_writeable(&mut self, val: guint)

source

pub fn is_seekable(&self) -> guint

source

pub fn set_is_seekable(&mut self, val: guint)

source

pub fn new_bitfield_1( use_buffer: guint, do_encode: guint, close_on_unref: guint, is_readable: guint, is_writeable: guint, is_seekable: guint ) -> __BindgenBitfieldUnit<[u8; 1]>

Trait Implementations§

source§

impl Clone for _GIOChannel

source§

fn clone(&self) -> _GIOChannel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for _GIOChannel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for _GIOChannel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.