pub struct Harc { /* private fields */ }Expand description
Implementations§
Source§impl Harc
impl Harc
Sourcepub fn new_fork<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
pub fn new_fork<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
Fork’s constructor.
See also Harc::new_fork_unchecked().
Sourcepub fn new_join<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
pub fn new_join<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
Join’s constructor.
See also Harc::new_join_unchecked().
Sourcepub fn new_fork_unchecked<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
pub fn new_fork_unchecked<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
A more efficient variant of Harc::new_fork().
Note: new Fork is created under the assumption that
suit_ids are nonempty and listed in ascending order. If the
caller fails to provide an ordered suit, the library may panic
in some other call (the constructor itself panics immediately
in debug mode).
Sourcepub fn new_join_unchecked<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
pub fn new_join_unchecked<I>(host_id: NodeID, suit_ids: I) -> Harcwhere
I: IntoIterator<Item = NodeID>,
A more efficient variant of Harc::new_join().
Note: new Join is created under the assumption that
suit_ids are nonempty and listed in ascending order. If the
caller fails to provide an ordered suit, the library may panic
in some other call (the constructor itself panics immediately
in debug mode).
pub fn get_atom_id(&self) -> NonZero<usize>
pub fn get_fork_id(&self) -> Option<ForkID>
pub fn get_join_id(&self) -> Option<JoinID>
pub fn get_host_id(&self) -> NodeID
pub fn get_suit_ids(&self) -> &[NodeID]
Trait Implementations§
Source§impl ExclusivelyContextual for Harc
impl ExclusivelyContextual for Harc
impl Eq for Harc
Auto Trait Implementations§
impl Freeze for Harc
impl RefUnwindSafe for Harc
impl Send for Harc
impl Sync for Harc
impl Unpin for Harc
impl UnwindSafe for Harc
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<T> Contextual for Twhere
T: ExclusivelyContextual,
impl<T> Contextual for Twhere
T: ExclusivelyContextual,
Source§impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference
Source§unsafe fn part_ptr(
ptr: *const <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::Ptr
unsafe fn part_ptr( ptr: *const <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::Ptr
Given a constant pointer to a target, produce a constant pointer to a part of it.
Source§unsafe fn part_ptr_mut(
ptr: *mut <Reference as PartialRefTarget>::RawTarget,
) -> <<Inner as Part>::PartType as PartType>::PtrMut
unsafe fn part_ptr_mut( ptr: *mut <Reference as PartialRefTarget>::RawTarget, ) -> <<Inner as Part>::PartType as PartType>::PtrMut
Given a mutable pointer to a target, produce a mutable pointer to a part of it.