pub struct Context<'a> {
pub tx_id: &'a str,
pub uuid: Uuid,
pub offset: &'a mut usize,
pub parsing_started: SystemTime,
pub network_name: String,
}
Expand description
Represent a Context object used to keep track of the … context of a transaction being parsed
Fields§
§tx_id: &'a str
Transaction ID of this tx
uuid: Uuid
Unique ID we generate at the beginning of the parsing for debug purposes
offset: &'a mut usize
Current byte number we are parsing
parsing_started: SystemTime
§network_name: String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more