Trait serai_processor::networks::Output
source · pub trait Output<N: Network>: Send + Sync + Sized + Clone + PartialEq + Eq + Debug {
type Id: 'static + Id;
// Required methods
fn kind(&self) -> OutputType;
fn id(&self) -> Self::Id;
fn tx_id(&self) -> <N::Transaction as Transaction<N>>::Id;
fn key(&self) -> <N::Curve as Ciphersuite>::G;
fn presumed_origin(&self) -> Option<N::Address>;
fn balance(&self) -> ExternalBalance;
fn data(&self) -> &[u8] ⓘ;
fn write<W: Write>(&self, writer: &mut W) -> Result<()>;
fn read<R: Read>(reader: &mut R) -> Result<Self>;
}
Required Associated Types§
Required Methods§
fn kind(&self) -> OutputType
fn id(&self) -> Self::Id
fn tx_id(&self) -> <N::Transaction as Transaction<N>>::Id
fn key(&self) -> <N::Curve as Ciphersuite>::G
fn presumed_origin(&self) -> Option<N::Address>
fn balance(&self) -> ExternalBalance
fn data(&self) -> &[u8] ⓘ
fn write<W: Write>(&self, writer: &mut W) -> Result<()>
fn read<R: Read>(reader: &mut R) -> Result<Self>
Object Safety§
This trait is not object safe.