pub enum ChunkState {
Unknown = 0,
NotFound = 1,
Pending = 2,
OnAir = 3,
Ready = 4,
Ignore = 5,
}
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 duplicate 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 for ChunkState
impl PartialEq for ChunkState
Source§impl PartialOrd for ChunkState
impl PartialOrd for ChunkState
Source§impl Serialize for ChunkState
impl Serialize for ChunkState
Source§impl TryFrom<u8> for ChunkState
impl TryFrom<u8> for ChunkState
impl Copy for ChunkState
impl Eq for ChunkState
impl StructuralPartialEq for ChunkState
Auto Trait Implementations§
impl Freeze for ChunkState
impl RefUnwindSafe for ChunkState
impl Send for ChunkState
impl Sync for ChunkState
impl Unpin for ChunkState
impl UnwindSafe for ChunkState
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more