mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-19 22:40:40 +00:00
5 lines
5.4 KiB
HTML
5 lines
5.4 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `utils` mod in crate `meta_srv`."><title>meta_srv::discovery::utils - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-e56847b5.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="meta_srv" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (fa3155a64 2025-09-30)" data-channel="nightly" data-search-js="search-e256b49e.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module utils</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../meta_srv/index.html">meta_<wbr>srv</a><span class="version">1.0.0-rc.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module utils</a></h2><h3><a href="#traits">Module Items</a></h3><ul class="block"><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In meta_<wbr>srv::<wbr>discovery</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">meta_srv</a>::<wbr><a href="../index.html">discovery</a></div><h1>Module <span>utils</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/meta_srv/discovery/utils.rs.html#15-184">Source</a> </span></div><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.LastActiveTs.html" title="trait meta_srv::discovery::utils::LastActiveTs">Last<wbr>Active<wbr>Ts</a></dt><dd>Trait for types that have a last active timestamp.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.accept_ingest_workload.html" title="fn meta_srv::discovery::utils::accept_ingest_workload">accept_<wbr>ingest_<wbr>workload</a></dt><dd>Determines if a datanode is capable of accepting ingest workloads.
|
||
Returns <code>true</code> if the datanode’s workload types include ingest capability,
|
||
or if the node is not of type [NodeWorkloads::Datanode].</dd><dt><a class="fn" href="fn.alive_datanode.html" title="fn meta_srv::discovery::utils::alive_datanode">alive_<wbr>datanode</a></dt><dd>Returns the alive datanode peer.</dd><dt><a class="fn" href="fn.alive_datanodes.html" title="fn meta_srv::discovery::utils::alive_datanodes">alive_<wbr>datanodes</a></dt><dd>Returns the alive datanodes.</dd><dt><a class="fn" href="fn.alive_flownodes.html" title="fn meta_srv::discovery::utils::alive_flownodes">alive_<wbr>flownodes</a></dt><dd>Returns the alive flownodes.</dd><dt><a class="fn" href="fn.alive_frontends.html" title="fn meta_srv::discovery::utils::alive_frontends">alive_<wbr>frontends</a></dt><dd>Returns the alive frontends.</dd><dt><a class="fn" href="fn.build_active_filter.html" title="fn meta_srv::discovery::utils::build_active_filter">build_<wbr>active_<wbr>filter</a></dt><dd>Builds a filter closure that checks whether a <a href="trait.LastActiveTs.html" title="trait meta_srv::discovery::utils::LastActiveTs"><code>LastActiveTs</code></a> item
|
||
is still within the specified active duration, relative to the
|
||
current time provided by the given <a href="../../../common_time/util/trait.SystemTimer.html" title="trait common_time::util::SystemTimer"><code>SystemTimer</code></a>.</dd><dt><a class="fn" href="fn.find_datanode_lease_value.html" title="fn meta_srv::discovery::utils::find_datanode_lease_value">find_<wbr>datanode_<wbr>lease_<wbr>value</a></dt><dd>Returns the lease value of the given datanode id, if the datanode is not found, returns None.</dd></dl></section></div></main></body></html> |