1 2 3 4 5 6 7 8 9
use address::Address; use postbox::PostBox; use post::PostItem; pub trait NetClient<T: PostBox> { fn new(Address) -> Self; fn post(&self, PostItem); fn get(&self) -> T; }