Enum nakamoto_p2p::Link
source · pub enum Link {
Inbound,
Outbound,
}
Expand description
Link direction of the peer connection.
Variants
Inbound
Inbound conneciton.
Outbound
Outbound connection.
Implementations
sourceimpl Link
impl Link
sourcepub fn is_outbound(&self) -> bool
pub fn is_outbound(&self) -> bool
Check whether the link is outbound.
sourcepub fn is_inbound(&self) -> bool
pub fn is_inbound(&self) -> bool
Check whether the link is inbound.
Trait Implementations
impl Copy for Link
impl Eq for Link
impl StructuralEq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more