Struct mimir::Context [−][src]
pub struct Context { /* fields omitted */ }
This structure represents the context in which all activity in the library takes place.
Methods
impl Context
[src]
impl Context
pub fn set_stdout(&mut self, val: Option<Logger>) -> &mut Self
[src]
pub fn set_stdout(&mut self, val: Option<Logger>) -> &mut Self
Optional stdout logger.
pub fn set_stderr(&mut self, val: Option<Logger>) -> &mut Self
[src]
pub fn set_stderr(&mut self, val: Option<Logger>) -> &mut Self
Optional stderr logger.
impl Context
[src]
impl Context
pub fn create() -> Result<Self>
[src]
pub fn create() -> Result<Self>
Create a Context
pub fn get_client_version(&self) -> Result<Info>
[src]
pub fn get_client_version(&self) -> Result<Info>
Return information about the version of the Oracle Client that is being used.
pub fn get_error(&self) -> Info
[src]
pub fn get_error(&self) -> Info
Returns error information for the last error that was raised by the library. This function must be called with the same thread that generated the error. It must also be called before any other ODPI-C library calls are made on the calling thread since the error information specific to that thread is cleared at the start of every ODPI-C function call.
pub fn init_common_create_params(&self) -> Result<CommonCreate>
[src]
pub fn init_common_create_params(&self) -> Result<CommonCreate>
Initializes the CommonCreate
structure to default values.
pub fn init_conn_create_params(&self) -> Result<ConnCreate>
[src]
pub fn init_conn_create_params(&self) -> Result<ConnCreate>
Initializes the ConnCreate
structure to default values.
pub fn init_pool_create_params(&self) -> Result<PoolCreate>
[src]
pub fn init_pool_create_params(&self) -> Result<PoolCreate>
Initializes the PoolCreate
structure to default values.
pub fn init_subscr_create_params(&self) -> Result<SubscrCreate>
[src]
pub fn init_subscr_create_params(&self) -> Result<SubscrCreate>
Initializes the SubscrCreate
struct to default values.
Trait Implementations
impl Clone for Context
[src]
impl Clone for Context
fn clone(&self) -> Context
[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl TryFrom<*mut ODPIContext> for Context
[src]
impl TryFrom<*mut ODPIContext> for Context
type Error = Error
try_from
)The type returned in the event of a conversion error.
fn try_from(inner: *mut ODPIContext) -> Result<Self>
[src]
fn try_from(inner: *mut ODPIContext) -> Result<Self>
try_from
)Performs the conversion.
impl Drop for Context
[src]
impl Drop for Context