pub struct InFlightOperation { /* private fields */ }Expand description
Host-tracked in-flight business operation surviving component hot-swaps and rollbacks.
Implementations§
Source§impl InFlightOperation
Accessor helper for InFlightOperation.
impl InFlightOperation
Accessor helper for InFlightOperation.
Sourcepub fn expected_revision_value(&self) -> Option<u64>
pub fn expected_revision_value(&self) -> Option<u64>
Returns the optional expected revision captured when this operation started.
§Returns
Option<u64>- Expected revision if set.
Source§impl InFlightOperation
impl InFlightOperation
pub fn get_operation_id(&self) -> OperationId
pub fn get_mut_operation_id(&mut self) -> &mut OperationId
pub fn set_operation_id(&mut self, val: OperationId) -> &mut Self
pub fn get_entity_id(&self) -> &String
pub fn get_mut_entity_id(&mut self) -> &mut String
pub fn set_entity_id(&mut self, val: String) -> &mut Self
pub fn get_command_name(&self) -> &String
pub fn get_mut_command_name(&mut self) -> &mut String
pub fn set_command_name(&mut self, val: String) -> &mut Self
pub fn get_idempotency_key(&self) -> &String
pub fn get_mut_idempotency_key(&mut self) -> &mut String
pub fn set_idempotency_key(&mut self, val: String) -> &mut Self
pub fn get_origin_generation(&self) -> u64
pub fn get_mut_origin_generation(&mut self) -> &mut u64
pub fn set_origin_generation(&mut self, val: u64) -> &mut Self
pub fn get_mut_expected_revision(&mut self) -> &mut Option<u64>
pub fn set_expected_revision(&mut self, val: Option<u64>) -> &mut Self
pub fn get_completed(&self) -> bool
pub fn get_mut_completed(&mut self) -> &mut bool
pub fn set_completed(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for InFlightOperation
impl Clone for InFlightOperation
Source§impl Debug for InFlightOperation
impl Debug for InFlightOperation
Source§impl<'de> Deserialize<'de> for InFlightOperation
impl<'de> Deserialize<'de> for InFlightOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InFlightOperation
impl PartialEq for InFlightOperation
Source§impl Serialize for InFlightOperation
impl Serialize for InFlightOperation
impl StructuralPartialEq for InFlightOperation
Auto Trait Implementations§
impl Forget for InFlightOperation
impl Freeze for InFlightOperation
impl Move for InFlightOperation
impl RefUnwindSafe for InFlightOperation
impl Send for InFlightOperationwhere
RawVecInner: Send,
impl Sync for InFlightOperationwhere
RawVecInner: Sync,
impl Unpin for InFlightOperation
impl UnsafeUnpin for InFlightOperation
impl UnwindSafe for InFlightOperationwhere
RawVecInner: UnwindSafe,
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