pub struct OnionPerfAnalysis {
pub data: HashMap<String, Data>,
pub filters: Option<Value>,
pub _type: String,
pub version: String,
pub time: Option<String>,
}
Expand description
Data Structure that maps to OnionPerf Analysis JSON data (Version : 3.1)
Fields§
§data: HashMap<String, Data>
Measurement data by source name The onionperf host name seems to be the only key here
filters: Option<Value>
§_type: String
§version: String
§time: Option<String>
Implementations§
source§impl OnionPerfAnalysis
impl OnionPerfAnalysis
pub fn get_all_failed_circuits(&self)
sourcepub fn get_all_successful_two_hop_paths(&self) -> Vec<OnionPerfTwoHopCircuit>
pub fn get_all_successful_two_hop_paths(&self) -> Vec<OnionPerfTwoHopCircuit>
Extract out all two hop combinations from successful circuits
sourcepub fn generate_two_hops(
index: usize,
path: &[RelayDetail],
timestamp: u64,
) -> Vec<OnionPerfTwoHopCircuit>
pub fn generate_two_hops( index: usize, path: &[RelayDetail], timestamp: u64, ) -> Vec<OnionPerfTwoHopCircuit>
Generate two hop circuit combinations from a path recursively
Trait Implementations§
source§impl<'de> Deserialize<'de> for OnionPerfAnalysis
impl<'de> Deserialize<'de> for OnionPerfAnalysis
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
Auto Trait Implementations§
impl Freeze for OnionPerfAnalysis
impl RefUnwindSafe for OnionPerfAnalysis
impl Send for OnionPerfAnalysis
impl Sync for OnionPerfAnalysis
impl Unpin for OnionPerfAnalysis
impl UnwindSafe for OnionPerfAnalysis
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