pub struct GhostCommandReport {
pub ghost_commands: Vec<GhostCommand>,
pub total_frontend_commands: usize,
pub total_registry_commands: usize,
}Expand description
Report of ghost commands – commands that exist on only one side of the IPC boundary.
Fields§
§ghost_commands: Vec<GhostCommand>Commands found on only the frontend or only the backend.
total_frontend_commands: usizeTotal unique commands observed from the frontend.
total_registry_commands: usizeTotal commands registered in the backend registry.
Trait Implementations§
Source§impl Clone for GhostCommandReport
impl Clone for GhostCommandReport
Source§fn clone(&self) -> GhostCommandReport
fn clone(&self) -> GhostCommandReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GhostCommandReport
impl Debug for GhostCommandReport
Source§impl<'de> Deserialize<'de> for GhostCommandReport
impl<'de> Deserialize<'de> for GhostCommandReport
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 Display for GhostCommandReport
§Examples
use victauri_core::{GhostCommandReport, GhostCommand, GhostSource};
let report = GhostCommandReport {
ghost_commands: vec![
GhostCommand {
name: "delete".to_string(),
source: GhostSource::FrontendOnly,
description: None,
},
],
total_frontend_commands: 3,
total_registry_commands: 2,
};
assert_eq!(
report.to_string(),
"1 ghost command(s) (3 frontend, 2 registry)"
);
impl Display for GhostCommandReport
§Examples
use victauri_core::{GhostCommandReport, GhostCommand, GhostSource};
let report = GhostCommandReport {
ghost_commands: vec![
GhostCommand {
name: "delete".to_string(),
source: GhostSource::FrontendOnly,
description: None,
},
],
total_frontend_commands: 3,
total_registry_commands: 2,
};
assert_eq!(
report.to_string(),
"1 ghost command(s) (3 frontend, 2 registry)"
);Source§impl PartialEq for GhostCommandReport
impl PartialEq for GhostCommandReport
Source§fn eq(&self, other: &GhostCommandReport) -> bool
fn eq(&self, other: &GhostCommandReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GhostCommandReport
impl Serialize for GhostCommandReport
impl Eq for GhostCommandReport
impl StructuralPartialEq for GhostCommandReport
Auto Trait Implementations§
impl Freeze for GhostCommandReport
impl RefUnwindSafe for GhostCommandReport
impl Send for GhostCommandReport
impl Sync for GhostCommandReport
impl Unpin for GhostCommandReport
impl UnsafeUnpin for GhostCommandReport
impl UnwindSafe for GhostCommandReport
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