pub enum BeatOutcome {
Sent,
Dropped(DropReason),
Failed(BeatError),
}Expand description
Result of a single Varta::beat call.
beat() never blocks and never panics; the kernel’s view of the send is
translated into one of three steady-state outcomes. Failed carries the
underlying error for higher layers that wish to log or escalate.
Variants§
Sent
The 32-byte datagram was accepted by the kernel.
Dropped(DropReason)
The kernel could not accept the datagram; the agent should treat
this as a no-op. The DropReason payload identifies the underlying
cause and lets operators distinguish “observer absent” from “peer gone”
from “kernel pressure” from “disk full”.
Failed(BeatError)
An unexpected I/O error surfaced from the underlying send(2).
Callers wanting an io::Error can call BeatError::to_io_error.
Trait Implementations§
Source§impl Debug for BeatOutcome
impl Debug for BeatOutcome
Auto Trait Implementations§
impl Freeze for BeatOutcome
impl RefUnwindSafe for BeatOutcome
impl Send for BeatOutcome
impl Sync for BeatOutcome
impl Unpin for BeatOutcome
impl UnsafeUnpin for BeatOutcome
impl UnwindSafe for BeatOutcome
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