Struct ethabi::Event
[−]
[src]
pub struct Event { /* fields omitted */ }
Contract event.
Methods
impl Event
[src]
fn new(interface: EventInterface) -> Self
Creates new instance of Event
.
fn signature(&self) -> [u8; 32]
Event signature
fn create_topics_filter(
&self,
topics: Vec<Token>
) -> Result<Vec<[u8; 32]>, Error>
&self,
topics: Vec<Token>
) -> Result<Vec<[u8; 32]>, Error>
Creates topic filter
fn decode_log(
&self,
topics: Vec<[u8; 32]>,
data: Vec<u8>
) -> Result<Vec<LogParam>, Error>
&self,
topics: Vec<[u8; 32]>,
data: Vec<u8>
) -> Result<Vec<LogParam>, Error>
Decodes event indexed params and data.
fn name(&self) -> &str
Return the name of the event.
fn inputs(&self) -> &[EventParam]
Return the inputs of the event.
Trait Implementations
impl Clone for Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more