pub struct SystemResult { /* private fields */ }
Expand description
Struct representing the result of a SystemRequest
.
Implementations§
Source§impl SystemResult
impl SystemResult
Sourcepub async fn wait_for_completion(
&mut self,
h: &Handle,
wait: Duration,
delay: Duration,
) -> Result<(), NoSQLError>
pub async fn wait_for_completion( &mut self, h: &Handle, wait: Duration, delay: Duration, ) -> Result<(), NoSQLError>
Wait for a SystemRequest to complete.
This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.
Sourcepub async fn wait_for_completion_ms(
&mut self,
h: &Handle,
wait_ms: u64,
delay_ms: u64,
) -> Result<(), NoSQLError>
pub async fn wait_for_completion_ms( &mut self, h: &Handle, wait_ms: u64, delay_ms: u64, ) -> Result<(), NoSQLError>
Wait for a SystemRequest to complete.
This method will loop, polling the system for the status of the SystemRequest until it either succeeds, gets an error, or times out.
This is a convenience method to allow direct millisecond values instead of creating
Duration
structs.
pub fn operation_id(&self) -> String
pub fn state(&self) -> OperationState
pub fn statement(&self) -> String
pub fn result_string(&self) -> String
Trait Implementations§
Source§impl Debug for SystemResult
impl Debug for SystemResult
Source§impl Default for SystemResult
impl Default for SystemResult
Source§fn default() -> SystemResult
fn default() -> SystemResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemResult
impl RefUnwindSafe for SystemResult
impl Send for SystemResult
impl Sync for SystemResult
impl Unpin for SystemResult
impl UnwindSafe for SystemResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more