Struct pgx_pg_sys::PortalData
source · [−]#[repr(C)]pub struct PortalData {Show 33 fields
pub name: *const c_char,
pub prepStmtName: *const c_char,
pub portalContext: MemoryContext,
pub resowner: ResourceOwner,
pub cleanup: Option<unsafe extern "C" fn(portal: Portal)>,
pub createSubid: SubTransactionId,
pub activeSubid: SubTransactionId,
pub sourceText: *const c_char,
pub commandTag: CommandTag,
pub qc: QueryCompletion,
pub stmts: *mut List,
pub cplan: *mut CachedPlan,
pub portalParams: ParamListInfo,
pub queryEnv: *mut QueryEnvironment,
pub strategy: PortalStrategy,
pub cursorOptions: c_int,
pub run_once: bool,
pub status: PortalStatus,
pub portalPinned: bool,
pub autoHeld: bool,
pub queryDesc: *mut QueryDesc,
pub tupDesc: TupleDesc,
pub formats: *mut int16,
pub portalSnapshot: Snapshot,
pub holdStore: *mut Tuplestorestate,
pub holdContext: MemoryContext,
pub holdSnapshot: Snapshot,
pub atStart: bool,
pub atEnd: bool,
pub portalPos: uint64,
pub creation_time: TimestampTz,
pub visible: bool,
pub createLevel: c_int,
}
Fields
name: *const c_char
prepStmtName: *const c_char
portalContext: MemoryContext
resowner: ResourceOwner
cleanup: Option<unsafe extern "C" fn(portal: Portal)>
createSubid: SubTransactionId
activeSubid: SubTransactionId
sourceText: *const c_char
commandTag: CommandTag
qc: QueryCompletion
stmts: *mut List
cplan: *mut CachedPlan
portalParams: ParamListInfo
queryEnv: *mut QueryEnvironment
strategy: PortalStrategy
cursorOptions: c_int
run_once: bool
status: PortalStatus
portalPinned: bool
autoHeld: bool
queryDesc: *mut QueryDesc
tupDesc: TupleDesc
formats: *mut int16
portalSnapshot: Snapshot
holdStore: *mut Tuplestorestate
holdContext: MemoryContext
holdSnapshot: Snapshot
atStart: bool
atEnd: bool
portalPos: uint64
creation_time: TimestampTz
visible: bool
createLevel: c_int
Trait Implementations
sourceimpl Clone for PortalData
impl Clone for PortalData
sourcefn clone(&self) -> PortalData
fn clone(&self) -> PortalData
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
sourceimpl Debug for PortalData
impl Debug for PortalData
sourceimpl Default for PortalData
impl Default for PortalData
impl Copy for PortalData
Auto Trait Implementations
impl RefUnwindSafe for PortalData
impl !Send for PortalData
impl !Sync for PortalData
impl Unpin for PortalData
impl UnwindSafe for PortalData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more