mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-13 06:29:25 +00:00
Fill in various DB functions
This commit is contained in:
@@ -8,7 +8,12 @@ use serai_primitives::{ExternalAddress, Balance};
|
||||
use crate::Id;
|
||||
|
||||
/// An address on the external network.
|
||||
pub trait Address: Send + Sync + TryFrom<ExternalAddress> {}
|
||||
pub trait Address: Send + Sync + TryFrom<ExternalAddress> {
|
||||
/// Write this address.
|
||||
fn write(&self, writer: &mut impl io::Write) -> io::Result<()>;
|
||||
/// Read an address.
|
||||
fn read(reader: &mut impl io::Read) -> io::Result<Self>;
|
||||
}
|
||||
|
||||
/// The type of the output.
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user