Struct odbc_api::parameter::Out [−][src]
Wraps a mutable reference. Use this wrapper in order to indicate that a mutable reference should be bound as an output parameter only, rather than an input / output parameter.
Example
use odbc_api::{Environment, Out, Nullable}; let env = unsafe { Environment::new()? }; let mut conn = env.connect("YourDatabase", "SA", "<YourStrong@Passw0rd>")?; let mut ret = Nullable::<i32>::null(); let mut param = Nullable::<i32>::new(7); conn.execute( "{? = call TestParam(?)}", (Out(&mut ret), &mut param))?;
Trait Implementations
impl<'a, T> Parameter for Out<'a, T> where
T: Output,
[src]
T: Output,
Mutable references wrapped in Out
are bound as output parameters.
unsafe fn bind_parameter(
self,
parameter_number: u16,
stmt: &mut StatementImpl<'_>
) -> Result<(), Error>
[src]
self,
parameter_number: u16,
stmt: &mut StatementImpl<'_>
) -> Result<(), Error>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Out<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Out<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for Out<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Out<'a, T>
impl<'a, T> !UnwindSafe for Out<'a, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,