pub struct DatabaseClient;Expand description
Database module client.
Implementations§
Source§impl DatabaseClient
impl DatabaseClient
Sourcepub fn connect(&self, _name: &str) -> Result<(), KrabkaError>
pub fn connect(&self, _name: &str) -> Result<(), KrabkaError>
Connect to a named database.
§Errors
Always returns KrabkaError::Unimplemented while the database module
remains gated.
Trait Implementations§
Source§impl Clone for DatabaseClient
impl Clone for DatabaseClient
Source§fn clone(&self) -> DatabaseClient
fn clone(&self) -> DatabaseClient
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 moreimpl Copy for DatabaseClient
Source§impl Debug for DatabaseClient
impl Debug for DatabaseClient
Source§impl Default for DatabaseClient
impl Default for DatabaseClient
Source§fn default() -> DatabaseClient
fn default() -> DatabaseClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DatabaseClient
impl RefUnwindSafe for DatabaseClient
impl Send for DatabaseClient
impl Sync for DatabaseClient
impl Unpin for DatabaseClient
impl UnsafeUnpin for DatabaseClient
impl UnwindSafe for DatabaseClient
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