pub enum BeatOutcome {
Sent,
Dropped,
Failed(Error),
}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 untouched for higher layers that wish to log or escalate.
Variants§
Sent
The 32-byte datagram was accepted by the kernel.
Dropped
The kernel could not accept the datagram and the agent should treat
this as a no-op. Possible causes: the observer is not listening, the
socket file vanished, or the per-socket queue is full
(WouldBlock under non-blocking I/O).
Failed(Error)
An unexpected I/O error surfaced from the underlying send(2). The
inner io::Error is forwarded verbatim; constructing it does not
allocate on the heap.
Trait Implementations§
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