pub struct KSharedConfig { /* private fields */ }Expand description
Provides KSharedConfig functioality in Rust.
This does not wrap a C++ class but rather is implemented completely in Rust.
Implementations§
Sourcepub fn open_config<T: Into<QString>>(
file: T,
mode: OpenFlags,
path_type: QStandardPathLocation,
) -> Result<KSharedConfigPtr, Error>
pub fn open_config<T: Into<QString>>( file: T, mode: OpenFlags, path_type: QStandardPathLocation, ) -> Result<KSharedConfigPtr, Error>
Creates a KSharedConfig object to manipulate a configuration file. This method is thread-safe.
Sourcepub fn open_state_config<T: Into<QString>>(
file: T,
) -> Result<KSharedConfigPtr, Error>
pub fn open_state_config<T: Into<QString>>( file: T, ) -> Result<KSharedConfigPtr, Error>
Creates a KSharedConfig object to manipulate a configuration file suitable for storing state information.
Auto Trait Implementations§
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