Enum cyfs_base::ChunkState
source · pub enum ChunkState {
Unknown,
NotFound,
Pending,
OnAir,
Ready,
Ignore,
}
Expand description
Chunk 存活状态机、
- 默认不存在
- 如果应用层表示感兴趣并且没有在被忽略路由里,则进入New状态
- 如果从关联的DeviceInfo获得或者被动收到广播,则进入Ready状态
- 如果在路由里配置了忽略,则进入Ignore状态
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ChunkState
impl Clone for ChunkState
source§fn clone(&self) -> ChunkState
fn clone(&self) -> ChunkState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChunkState
impl Debug for ChunkState
source§impl<'de> Deserialize<'de> for ChunkState
impl<'de> Deserialize<'de> for ChunkState
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 From<&ChunkState> for u8
impl From<&ChunkState> for u8
source§fn from(value: &ChunkState) -> Self
fn from(value: &ChunkState) -> Self
Converts to this type from the input type.
source§impl From<ChunkState> for u8
impl From<ChunkState> for u8
source§fn from(value: ChunkState) -> Self
fn from(value: ChunkState) -> Self
Converts to this type from the input type.
source§impl Ord for ChunkState
impl Ord for ChunkState
source§fn cmp(&self, other: &ChunkState) -> Ordering
fn cmp(&self, other: &ChunkState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ChunkState> for ChunkState
impl PartialEq<ChunkState> for ChunkState
source§fn eq(&self, other: &ChunkState) -> bool
fn eq(&self, other: &ChunkState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChunkState> for ChunkState
impl PartialOrd<ChunkState> for ChunkState
source§fn partial_cmp(&self, other: &ChunkState) -> Option<Ordering>
fn partial_cmp(&self, other: &ChunkState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more