pub struct Config<F: Read + Write, S: System<F>> { /* private fields */ }Implementations§
Source§impl<F: Read + Write, S: System<F>> Config<F, S>
impl<F: Read + Write, S: System<F>> Config<F, S>
pub fn new(system: S) -> MyResult<Self>
pub fn with_config(self) -> MyResult<Self>
pub fn export_config(&self) -> MyResult<()>
pub fn get_aliases(&self) -> Vec<String>
pub fn add_driver( &mut self, alias: String, odbc: Option<String>, default: bool, ) -> MyResult<()>
pub fn remove_driver(&mut self, alias: String) -> MyResult<()>
pub fn remove_history(&self) -> MyResult<()>
pub fn list_drivers<W2: Write>(&self, writer: &mut W2) -> MyResult<()>
pub fn find_driver( &mut self, alias: Option<String>, ) -> MyResult<(String, Driver)>
Auto Trait Implementations§
impl<F, S> Freeze for Config<F, S>where
S: Freeze,
impl<F, S> RefUnwindSafe for Config<F, S>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, S> Send for Config<F, S>
impl<F, S> Sync for Config<F, S>
impl<F, S> Unpin for Config<F, S>
impl<F, S> UnsafeUnpin for Config<F, S>where
S: UnsafeUnpin,
impl<F, S> UnwindSafe for Config<F, S>where
S: UnwindSafe,
F: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more