#[repr(C)]pub struct switch_config {
pub file: *mut FILE,
pub path: [c_char; 512],
pub category: [c_char; 256],
pub section: [c_char; 256],
pub buf: [c_char; 1024],
pub lineno: c_int,
pub catno: c_int,
pub sectno: c_int,
pub lockto: c_int,
}Expand description
\brief A simple file handle representing an open configuration file
Fields§
§file: *mut FILEFILE stream buffer to the opened file
path: [c_char; 512]path to the file
category: [c_char; 256]current category
section: [c_char; 256]current section
buf: [c_char; 1024]buffer of current line being read
lineno: c_intcurrent line number in file
catno: c_intcurrent category number in file
sectno: c_intcurrent section number in file
lockto: c_intTrait Implementations§
Source§impl Clone for switch_config
impl Clone for switch_config
Source§fn clone(&self) -> switch_config
fn clone(&self) -> switch_config
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 switch_config
impl Debug for switch_config
Source§impl Default for switch_config
impl Default for switch_config
impl Copy for switch_config
Auto Trait Implementations§
impl Freeze for switch_config
impl RefUnwindSafe for switch_config
impl !Send for switch_config
impl !Sync for switch_config
impl Unpin for switch_config
impl UnsafeUnpin for switch_config
impl UnwindSafe for switch_config
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