pub struct Harc { /* private fields */ }Expand description
Implementations§
Source§impl Harc
impl Harc
Sourcepub fn new_fork<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
I: IntoIterator<Item = NodeID>,
pub fn new_fork<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
I: IntoIterator<Item = NodeID>,
Fork’s constructor.
See also Harc::new_fork_unchecked().
Sourcepub fn new_join<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
I: IntoIterator<Item = NodeID>,
pub fn new_join<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
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) -> Selfwhere
I: IntoIterator<Item = NodeID>,
pub fn new_fork_unchecked<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
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) -> Selfwhere
I: IntoIterator<Item = NodeID>,
pub fn new_join_unchecked<I>(host_id: NodeID, suit_ids: I) -> Selfwhere
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) -> AtomID
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