pub struct GuardMonitor { /* private fields */ }
Expand description

An object used to tell the GuardMgr about the result of trying to build a circuit through a guard.

The GuardMgr needs to know about these statuses, so that it can tell whether the guard is running or not.

Implementations

Report that a circuit was successfully built in a way that indicates that the guard is working.

Note that this doesn’t necessarily mean that the circuit succeeded. For example, we might decide that extending to a second hop means that a guard is usable, even if the circuit stalled at the third hop.

Report that the circuit could not be built successfully, in a way that indicates that the guard isn’t working.

(This either be because of a network failure, a timeout, or something else.)

Report that we did not try to build a circuit using the guard, or that we can’t tell whether the guard is working.

Dropping a GuardMonitor is without calling succeeded or failed or pending_status is equivalent to calling this function.

Configure this monitor so that, if it is dropped before use, it sends the status status.

Set the given clock skew value to be reported to the guard manager.

Clock skew can be reported on success or failure, but it should only be reported if the first hop is actually authenticated.

Return the current pending status and “ignore indeterminate” status for this guard monitor.

Configure this monitor to ignore any indeterminate status values, and treat them as abandoned attempts.

We should use this whenever the path being built with this guard is not randomly generated.

Report a message for this guard.

Report the pending message for his guard, whatever it is.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more