pub struct OperationSource {
pub kind: OperationSourceKind,
pub session_id: Option<SessionId>,
pub peer_id: Option<PeerId>,
pub address: Option<PeerAddress>,
}Expand description
Typed source identity for an async operation. The lifecycle machine stores
this on RegisterOp so peer-only operation identity is not reconstructed
from display strings or shell-side labels.
Fields§
§kind: OperationSourceKind§session_id: Option<SessionId>§peer_id: Option<PeerId>§address: Option<PeerAddress>Implementations§
Source§impl OperationSource
impl OperationSource
pub fn from_domain(source: &OperationSource) -> Self
pub fn to_domain(&self) -> Result<OperationSource, String>
Trait Implementations§
Source§impl Clone for OperationSource
impl Clone for OperationSource
Source§fn clone(&self) -> OperationSource
fn clone(&self) -> OperationSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationSource
impl Debug for OperationSource
Source§impl Default for OperationSource
impl Default for OperationSource
Source§fn default() -> OperationSource
fn default() -> OperationSource
Returns the “default value” for a type. Read more
impl Eq for OperationSource
Source§impl Hash for OperationSource
impl Hash for OperationSource
Source§impl Ord for OperationSource
impl Ord for OperationSource
Source§fn cmp(&self, other: &OperationSource) -> Ordering
fn cmp(&self, other: &OperationSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OperationSource
impl PartialEq for OperationSource
Source§fn eq(&self, other: &OperationSource) -> bool
fn eq(&self, other: &OperationSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OperationSource
impl PartialOrd for OperationSource
impl StructuralPartialEq for OperationSource
Auto Trait Implementations§
impl Freeze for OperationSource
impl RefUnwindSafe for OperationSource
impl Send for OperationSource
impl Sync for OperationSource
impl Unpin for OperationSource
impl UnsafeUnpin for OperationSource
impl UnwindSafe for OperationSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.