Enum linkspace::query::PredicateType
#[non_exhaustive]pub enum PredicateType {
Show 24 variants
Hash,
Group,
Domain,
Prefix,
Spacename,
Pubkey,
Create,
Depth,
LinksLen,
DataSize,
Recv,
IBranch,
IDb,
INew,
I,
Hop,
Stamp,
Ubits0,
Ubits1,
Ubits2,
Ubits3,
Type,
Netflags,
Size,
}
Expand description
A list of all supported query predicates
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Hash
“hash”
the point hash e.g. [b:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA] ( implies DATA)
Group
“group”
group id e.g. [#:pub] ( implies LINK)
Domain
“domain”
domain - if fewer than 16 bytes, prepadded with e.g. [a:example] ( implies LINK)
Prefix
“prefix”
all points with spacename starting with prefix - only accepts ‘=’ op e.g. /hello/world ( implies LINK)
Spacename
“spacename”
exact spacename - only accepts ‘=’ op e.g. /hello/world ( implies LINK)
Pubkey
“pubkey”
public key used to sign point e.g. [@:me:local] ( implies SIGNATURE)
Create
“create”
the create stamp e.g. [now:-1H] ( implies LINK)
Depth
“depth”
the total number of space components - max 8 e.g. [u8:0] ( implies LINK)
LinksLen
“links_len”
the number of links in a packet e.g. [u16:0] ( implies LINK)
DataSize
“data_size”
the byte size of the data field e.g. [u16:0] ( implies LINK)
Recv
“recv”
the recv time of a packet e.g. [now:+1D] ( implies DATA)
IBranch
“i_branch”
total packets per uniq (group,domain,space,key) - only applicable during local tree index, ignored otherwise e.g. [u32:0] ( implies LINK)
IDb
“i_db”
total packets read from local instance e.g. [u32:0] ( implies EMPTY)
INew
“i_new”
total newly received packets e.g. [u32:0] ( implies EMPTY)
I
“i”
total matched packets e.g. [u32:0] ( implies EMPTY)
Hop
“hop”
(mutable) number of hops e.g. [u16:5] ( implies EMPTY)
Stamp
“stamp”
(mutable) variable stamp e.g. [now] ( implies EMPTY)
Ubits0
“ubits0”
(mutable) user defined bits e.g. [u32:0] ( implies EMPTY)
Ubits1
“ubits1”
(mutable) user defined bits e.g. [u32:0] ( implies EMPTY)
Ubits2
“ubits2”
(mutable) user defined bits e.g. [u32:0] ( implies EMPTY)
Ubits3
“ubits3”
(mutable) user defined bits e.g. [u32:0] ( implies EMPTY)
Type
“type”
the field type bits - implied by other predicates e.g. [b2:00000001] ( implies EMPTY)
Netflags
“netflags”
(mutable) netflags e.g. [b2:00000000] ( implies EMPTY)
Size
“size”
exact size of the netpkt when using lk_write or lk_read - includes netheader and hash e.g. [u16:4] ( implies DATA)
Implementations§
§impl PredicateType
impl PredicateType
pub const ALL: [PredicateType; 24] = _
pub fn try_from_id(id: &[u8]) -> Option<PredicateType>
pub const fn info(self) -> PredInfo
Trait Implementations§
§impl Clone for PredicateType
impl Clone for PredicateType
§fn clone(&self) -> PredicateType
fn clone(&self) -> PredicateType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for PredicateType
impl Debug for PredicateType
§impl Display for PredicateType
impl Display for PredicateType
§impl FromStr for PredicateType
impl FromStr for PredicateType
§impl PartialEq for PredicateType
impl PartialEq for PredicateType
§fn eq(&self, other: &PredicateType) -> bool
fn eq(&self, other: &PredicateType) -> bool
self
and other
values to be equal, and is used
by ==
.