pub struct Timeout<NID: NodeId> {
pub action: RPCTypes,
pub id: NID,
pub target: NID,
pub timeout: Duration,
}
Fields§
§action: RPCTypes
§id: NID
§target: NID
§timeout: Duration
Trait Implementations§
source§impl<NID: NodeId> Error for Timeout<NID>where
Self: Debug + Display,
impl<NID: NodeId> Error for Timeout<NID>where Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<NID: PartialEq + NodeId> PartialEq<Timeout<NID>> for Timeout<NID>
impl<NID: PartialEq + NodeId> PartialEq<Timeout<NID>> for Timeout<NID>
impl<NID: Eq + NodeId> Eq for Timeout<NID>
impl<NID: NodeId> StructuralEq for Timeout<NID>
impl<NID: NodeId> StructuralPartialEq for Timeout<NID>
Auto Trait Implementations§
impl<NID> RefUnwindSafe for Timeout<NID>where NID: RefUnwindSafe,
impl<NID> Send for Timeout<NID>
impl<NID> Sync for Timeout<NID>
impl<NID> Unpin for Timeout<NID>where NID: Unpin,
impl<NID> UnwindSafe for Timeout<NID>where NID: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.