#[non_exhaustive]pub struct PeerRefusal {
pub pid: Option<u32>,
pub image: Option<PathBuf>,
pub kind: PeerFailureKind,
pub reason: String,
}Expand description
A peer that could not be identified, as a plain value a ServiceEvent
or a log line can carry (the OS error is flattened to text).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pid: Option<u32>The peer’s process id, when known.
image: Option<PathBuf>The peer’s executable path, when it could be read.
kind: PeerFailureKindThe stable kind.
reason: StringThe OS error text.
Trait Implementations§
Source§impl Clone for PeerRefusal
impl Clone for PeerRefusal
Source§impl Debug for PeerRefusal
impl Debug for PeerRefusal
impl Eq for PeerRefusal
Source§impl PartialEq for PeerRefusal
impl PartialEq for PeerRefusal
impl StructuralPartialEq for PeerRefusal
Auto Trait Implementations§
impl Freeze for PeerRefusal
impl RefUnwindSafe for PeerRefusal
impl Send for PeerRefusal
impl Sync for PeerRefusal
impl Unpin for PeerRefusal
impl UnsafeUnpin for PeerRefusal
impl UnwindSafe for PeerRefusal
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