pub enum CommunicationScope {
Local,
Remote,
}Expand description
Communication scope derived from locations.
Variants§
Local
Sender and peer are on the same host.
Remote
Sender and peer are on different hosts, or host identity is ambiguous.
Implementations§
Source§impl CommunicationScope
impl CommunicationScope
Sourcepub fn from_locations(
my_location: &ProcessLocation,
peer_location: &ProcessLocation,
) -> Self
pub fn from_locations( my_location: &ProcessLocation, peer_location: &ProcessLocation, ) -> Self
Computes communication scope from two process locations.
Trait Implementations§
Source§impl Clone for CommunicationScope
impl Clone for CommunicationScope
Source§fn clone(&self) -> CommunicationScope
fn clone(&self) -> CommunicationScope
Returns a duplicate of the value. Read more
1.0.0 · 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 CommunicationScope
impl Debug for CommunicationScope
Source§impl<'de> Deserialize<'de> for CommunicationScope
impl<'de> Deserialize<'de> for CommunicationScope
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 Hash for CommunicationScope
impl Hash for CommunicationScope
Source§impl PartialEq for CommunicationScope
impl PartialEq for CommunicationScope
Source§impl Serialize for CommunicationScope
impl Serialize for CommunicationScope
impl Copy for CommunicationScope
impl Eq for CommunicationScope
impl StructuralPartialEq for CommunicationScope
Auto Trait Implementations§
impl Freeze for CommunicationScope
impl RefUnwindSafe for CommunicationScope
impl Send for CommunicationScope
impl Sync for CommunicationScope
impl Unpin for CommunicationScope
impl UnsafeUnpin for CommunicationScope
impl UnwindSafe for CommunicationScope
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