pub struct CommandComplete<'a> {
pub tag: &'a str,
}Expand description
CommandComplete message - indicates successful completion of a command.
Fields§
§tag: &'a strCommand tag (e.g., “SELECT 5”, “INSERT 0 1”, “UPDATE 10”)
Implementations§
Source§impl<'a> CommandComplete<'a>
impl<'a> CommandComplete<'a>
Sourcepub fn parse(payload: &'a [u8]) -> Result<Self>
pub fn parse(payload: &'a [u8]) -> Result<Self>
Parse a CommandComplete message from payload bytes.
Sourcepub fn rows_affected(&self) -> Option<u64>
pub fn rows_affected(&self) -> Option<u64>
Parse the number of rows affected from the command tag.
Returns Some(count) for commands like SELECT, INSERT, UPDATE, DELETE.
Returns None for other commands or parse failures.
Trait Implementations§
Source§impl<'a> Clone for CommandComplete<'a>
impl<'a> Clone for CommandComplete<'a>
Source§fn clone(&self) -> CommandComplete<'a>
fn clone(&self) -> CommandComplete<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CommandComplete<'a>
impl<'a> Debug for CommandComplete<'a>
impl<'a> Copy for CommandComplete<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandComplete<'a>
impl<'a> RefUnwindSafe for CommandComplete<'a>
impl<'a> Send for CommandComplete<'a>
impl<'a> Sync for CommandComplete<'a>
impl<'a> Unpin for CommandComplete<'a>
impl<'a> UnwindSafe for CommandComplete<'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