pub struct Event { /* private fields */ }
Implementations§
Source§impl Event
impl Event
pub fn read<R: Read>( reader: &mut R, offset: u64, ) -> Result<Self, EventParseError>
pub fn type_code(&self) -> TypeCode
pub fn timestamp(&self) -> u32
pub fn next_position(&self) -> u64
pub fn inner( &self, table_map: Option<&TableMap>, ) -> Result<Option<EventData>, EventParseError>
pub fn data(&self) -> &Vec<u8> ⓘ
pub fn flags(&self) -> u16
pub fn event_length(&self) -> u32
pub fn offset(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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