pub enum OwnedEvent {
Show 16 variants
UpgradeTls,
ScramNeeded {
plus: bool,
},
Connected,
ParameterStatus {
name: String,
value: String,
},
Fields {
token: Token,
fields: OwnedFields,
},
Row {
token: Token,
row: OwnedRow,
},
CommandComplete {
token: Token,
tag: String,
row_count: Option<u64>,
},
Error {
token: Option<Token>,
error: OwnedServerError,
},
Notice(OwnedServerError),
Notification {
process_id: i32,
channel: String,
payload: String,
},
CopyIn {
token: Token,
binary: bool,
column_formats: Vec<u8>,
},
CopyOut {
token: Token,
binary: bool,
column_formats: Vec<u8>,
},
CopyData {
token: Token,
data: Vec<u8>,
},
CopyDone {
token: Token,
},
Completed {
token: Token,
outcome: Outcome,
transaction: TransactionStatus,
},
Closed {
reason: Error,
},
}Expand description
Event with every borrowed payload copied out, for hosts that retain
rows, errors or notifications past the next mutable call. as_event lends
it back in borrowed form, so one host handler can consume either.
Variants§
UpgradeTls
ScramNeeded
Connected
ParameterStatus
Fields
Row
CommandComplete
Error
Notice(OwnedServerError)
Notification
CopyIn
CopyOut
CopyData
CopyDone
Completed
Closed
Implementations§
Trait Implementations§
Source§impl Clone for OwnedEvent
impl Clone for OwnedEvent
Source§impl Debug for OwnedEvent
impl Debug for OwnedEvent
impl Eq for OwnedEvent
Source§impl PartialEq for OwnedEvent
impl PartialEq for OwnedEvent
impl StructuralPartialEq for OwnedEvent
Auto Trait Implementations§
impl Forget for OwnedEvent
impl Freeze for OwnedEvent
impl RefUnwindSafe for OwnedEvent
impl Send for OwnedEvent
impl Sync for OwnedEvent
impl Unpin for OwnedEvent
impl UnsafeUnpin for OwnedEvent
impl UnwindSafe for OwnedEvent
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