Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use futures::channel::{mpsc, oneshot};
use futures::future::Shared;
use futures::lock::Mutex;
use futures::Future;
use std::fmt;
use std::hash::{Hash, Hasher};
use std::pin::Pin;
use std::sync::Arc;
Expand Down Expand Up @@ -37,6 +38,14 @@ impl<A> Clone for Addr<A> {
}
}

impl<A> fmt::Debug for Addr<A> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct(&std::any::type_name::<A>())
.field("addr", &self.actor_id)
.finish()
}
}

impl<A> PartialEq for Addr<A> {
fn eq(&self, other: &Self) -> bool {
self.actor_id == other.actor_id
Expand Down