Skip to main content

OfflineOperationHandle

Struct OfflineOperationHandle 

Source
pub struct OfflineOperationHandle<T> { /* private fields */ }
Expand description

Owner-thread offline database operation token that must be taken or discarded.

Implementations§

Source§

impl<T> OfflineOperationHandle<T>

Source

pub fn id(&self) -> u64

Returns the native operation ID.

Source

pub fn operation_kind(&self) -> OfflineOperationKind

Returns the operation kind expected for this handle.

Source

pub fn result_kind(&self) -> OfflineOperationResultKind

Returns the result kind expected for this handle.

Source

pub fn is_live(&self) -> bool

Reports whether this handle still owns runtime operation state.

Source

pub fn discard(self) -> Result<(), HandleOperationError<Self>>

Discards runtime-owned state for this offline operation.

Source§

impl OfflineOperationHandle<OfflineRegionInfo>

Source

pub fn take(self) -> Result<OfflineRegionInfo>

Takes a completed create/update operation result as copied region info.

Source§

impl OfflineOperationHandle<Option<OfflineRegionInfo>>

Source

pub fn take(self) -> Result<Option<OfflineRegionInfo>>

Takes a completed get operation result as optional copied region info.

Source§

impl OfflineOperationHandle<Vec<OfflineRegionInfo>>

Source

pub fn take(self) -> Result<Vec<OfflineRegionInfo>>

Takes a completed list/merge operation result as copied region info.

Source§

impl OfflineOperationHandle<OfflineRegionStatus>

Source

pub fn take(self) -> Result<OfflineRegionStatus>

Takes a completed status operation result as copied status data.

Trait Implementations§

Source§

impl<T> Debug for OfflineOperationHandle<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Drop for OfflineOperationHandle<T>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.