pub enum LinkType {
Bidirect,
Limited,
}
Expand description
Specify the conneciton types used by this node
By default netmod-tcp tries to establish bi-directional
connections, meaning that two nodes each have a dedicated
transmission (tx) and receiving (rx) channels. However on some
networks this isn’t possible. While Bidirect
is a good default,
it’s possible to override this behaviour.
Limited
will open connections to peers with a special flag that
makes it use a different reverse-channel strategy. The server
won’t try to create full reverse channels, and instead use the
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkType
impl<'de> Deserialize<'de> for LinkType
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 Ord for LinkType
impl Ord for LinkType
Source§impl PartialOrd for LinkType
impl PartialOrd for LinkType
impl Copy for LinkType
impl Eq for LinkType
impl StructuralPartialEq for LinkType
Auto Trait Implementations§
impl Freeze for LinkType
impl RefUnwindSafe for LinkType
impl Send for LinkType
impl Sync for LinkType
impl Unpin for LinkType
impl UnwindSafe for LinkType
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