Enum libp2p::swarm::protocols_handler::KeepAlive [−][src]
pub enum KeepAlive {
Until(Instant),
Yes,
No,
}How long the connection should be kept alive.
Variants
Until(Instant)If nothing new happens, the connection should be closed at the given Instant.
Keep the connection alive.
Close the connection as soon as possible.
Implementations
Trait Implementations
impl PartialOrd<KeepAlive> for KeepAlive[src]
impl PartialOrd<KeepAlive> for KeepAlive[src]pub fn partial_cmp(&self, other: &KeepAlive) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> bool