pub struct Quality(/* private fields */);
Expand description
Information about the quality of a link. A lower value for the contained u8 is better, with 0 usually meaning a node linked to itself with no intermediate connection. The u8 value should never be 255 as this has a reserved meaning when we encode.
Implementations§
Source§impl Quality
impl Quality
Sourcepub const IN_PROCESS: Quality = _
pub const IN_PROCESS: Quality = _
Quality of connecting two nodes in the same process directly.
Sourcepub const LOCAL_SOCKET: Quality = _
pub const LOCAL_SOCKET: Quality = _
Quality of connecting two nodes over a local IPC mechanism.
Trait Implementations§
Source§impl Ord for Quality
impl Ord for Quality
Source§impl PartialOrd for Quality
impl PartialOrd for Quality
impl Copy for Quality
impl Eq for Quality
impl StructuralPartialEq for Quality
Auto Trait Implementations§
impl Freeze for Quality
impl RefUnwindSafe for Quality
impl Send for Quality
impl Sync for Quality
impl Unpin for Quality
impl UnwindSafe for Quality
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)