Struct axum_odbc::OdbcManagerLayer
source · [−]pub struct OdbcManagerLayer { /* private fields */ }
Expand description
Sessions Layer used with Axum to activate the Service.
Examples
use axum_odbc::{OdbcManagerLayer, ODBCConnectionManager};
let odbc_manager = ODBCConnectionManager::new("");
let layer = OdbcManagerLayer::new(odbc_manager);
Implementations
sourceimpl OdbcManagerLayer
impl OdbcManagerLayer
sourcepub fn new(odbc_manager: ODBCConnectionManager) -> Self
pub fn new(odbc_manager: ODBCConnectionManager) -> Self
Constructs a OdbcManagerLayer used with Axum to activate the Service.
Examples
use axum_odbc::{OdbcManagerLayer, ODBCConnectionManager};
let odbc_manager = ODBCConnectionManager::new("");
let layer = OdbcManagerLayer::new(odbc_manager);
Trait Implementations
sourceimpl Clone for OdbcManagerLayer
impl Clone for OdbcManagerLayer
sourcefn clone(&self) -> OdbcManagerLayer
fn clone(&self) -> OdbcManagerLayer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for OdbcManagerLayer
impl Send for OdbcManagerLayer
impl Sync for OdbcManagerLayer
impl Unpin for OdbcManagerLayer
impl UnwindSafe for OdbcManagerLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more