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]
pub fn set_stdout(&mut self, val: Option<Logger>)
[src]
Optional stdout logger.
pub fn set_stderr(&mut self, val: Option<Logger>)
[src]
Optional stderr logger.
impl Context
[src]
pub fn create() -> Result<Self>
[src]
Create a Context
pub fn get_client_version(&self) -> Result<Info>
[src]
Return information about the version of the Oracle Client that is being used.
pub fn get_error(&self) -> Info
[src]
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]
Initializes the CommonCreate
structure to default values.
pub fn init_conn_create_params(&self) -> Result<ConnCreate>
[src]
Initializes the ConnCreate
structure to default values.
pub fn init_pool_create_params(&self) -> Result<PoolCreate>
[src]
Initializes the PoolCreate
structure to default values.
pub fn init_subscr_create_params(&self) -> Result<SubscrCreate>
[src]
Initializes the SubscrCreate
struct to default values.
Trait Implementations
impl Clone for Context
[src]
fn clone(&self) -> Context
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl TryFrom<*mut ODPIContext> for Context
[src]
type Error = Error
try_from
)The type returned in the event of a conversion error.
fn try_from(inner: *mut ODPIContext) -> Result<Self>
[src]
try_from
)Performs the conversion.