pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
pub fn new() -> Self
pub fn pool_type(self, pool_type: PoolType) -> Self
pub fn factory( self, factory: Box<dyn Fn(&JavaVM, &HashMap<String, String>) -> Result<GlobalRef, InitError> + 'static> ) -> Self
pub fn vm(self, vm: Arc<JavaVM>) -> Self
pub fn property(self, k: &str, v: &str) -> Self
pub fn jdbc_url(self, url: &str) -> Self
pub fn driver_class(self, url: &str) -> Self
pub fn username(self, username: &str) -> Self
pub fn password(self, password: &str) -> Self
pub fn build(self) -> Result<Datasource, InitError>
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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