pub enum Phase0RemoteFailure {
NodeUnreachable,
NodeDown,
TransportError(String),
Timeout,
}Expand description
Failure mode used when spawn_remote() is called without an attached
RemoteRuntime.
The no-runtime fallback must stay explicit and deterministic. It resolves the handle to the configured terminal error immediately instead of spawning detached work or sleeping on wall-clock time inside core runtime code.
Variants§
NodeUnreachable
Simulate an unreachable destination node.
NodeDown
Simulate a node that exists but is currently down.
TransportError(String)
Simulate a transport-layer failure after retry attempts.
Timeout
Simulate a request that only times out.
Trait Implementations§
Source§impl Clone for Phase0RemoteFailure
impl Clone for Phase0RemoteFailure
Source§fn clone(&self) -> Phase0RemoteFailure
fn clone(&self) -> Phase0RemoteFailure
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 Phase0RemoteFailure
impl Debug for Phase0RemoteFailure
impl Eq for Phase0RemoteFailure
Source§impl PartialEq for Phase0RemoteFailure
impl PartialEq for Phase0RemoteFailure
impl StructuralPartialEq for Phase0RemoteFailure
Auto Trait Implementations§
impl Freeze for Phase0RemoteFailure
impl RefUnwindSafe for Phase0RemoteFailure
impl Send for Phase0RemoteFailure
impl Sync for Phase0RemoteFailure
impl Unpin for Phase0RemoteFailure
impl UnsafeUnpin for Phase0RemoteFailure
impl UnwindSafe for Phase0RemoteFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).