pub enum Event<'a> {
Show 16 variants
Progress,
UpgradeTls,
Connected {
connection_id: u32,
},
RsaSeedNeeded,
AuthFastSuccess,
AuthFull,
ColumnCount {
token: Token,
count: usize,
},
Column {
token: Token,
column: Column<'a>,
parameter: bool,
},
Row {
token: Token,
row: Row<'a>,
},
Ok {
token: Token,
packet: OkPacket<'a>,
},
Eof {
token: Token,
warnings: u16,
status: StatusFlags,
},
Prepared {
token: Token,
statement: Statement,
},
Error {
token: Option<Token>,
error: ServerError<'a>,
},
LocalInfile {
token: Token,
file_name: &'a [u8],
},
Completed {
token: Token,
outcome: Outcome,
},
Closed {
reason: Error,
},
}Variants§
Progress
UpgradeTls
Connected
RsaSeedNeeded
Supply 20 fresh random bytes to rsa_seed; no entropy is read by the core.
AuthFastSuccess
AuthFull
ColumnCount
Column
Row
Ok
A genuine OK packet: a command or one statement of a multi-statement
query finished without a result set. affected_rows, last_insert_id
and info are meaningful.
Eof
The EOF packet ending one result set’s rows. It carries no row counts,
only the warning count and status flags (SERVER_MORE_RESULTS_EXISTS
announces another result).
Prepared
Error
LocalInfile
Completed
Closed
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Event<'a>
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'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