#[repr(u8)]pub enum MessageFormat {
Show 21 variants
Authentication = 0,
BackendKeyData = 1,
BindComplete = 2,
CloseComplete = 3,
CommandComplete = 4,
CopyData = 5,
CopyDone = 6,
CopyInResponse = 7,
CopyOutResponse = 8,
DataRow = 9,
EmptyQueryResponse = 10,
ErrorResponse = 11,
NoData = 12,
NoticeResponse = 13,
NotificationResponse = 14,
ParameterDescription = 15,
ParameterStatus = 16,
ParseComplete = 17,
PortalSuspended = 18,
ReadyForQuery = 19,
RowDescription = 20,
}Available on crate feature
postgres only.Variants§
Authentication = 0
BackendKeyData = 1
BindComplete = 2
CloseComplete = 3
CommandComplete = 4
CopyData = 5
CopyDone = 6
CopyInResponse = 7
CopyOutResponse = 8
DataRow = 9
EmptyQueryResponse = 10
ErrorResponse = 11
NoData = 12
NoticeResponse = 13
NotificationResponse = 14
ParameterDescription = 15
ParameterStatus = 16
ParseComplete = 17
PortalSuspended = 18
ReadyForQuery = 19
RowDescription = 20
Implementations§
Source§impl MessageFormat
impl MessageFormat
pub fn try_from_u8(v: u8) -> Result<Self, Error>
Trait Implementations§
Source§impl Debug for MessageFormat
impl Debug for MessageFormat
Source§impl PartialEq for MessageFormat
impl PartialEq for MessageFormat
Source§impl PartialOrd for MessageFormat
impl PartialOrd for MessageFormat
impl StructuralPartialEq for MessageFormat
Auto Trait Implementations§
impl Freeze for MessageFormat
impl RefUnwindSafe for MessageFormat
impl Send for MessageFormat
impl Sync for MessageFormat
impl Unpin for MessageFormat
impl UnwindSafe for MessageFormat
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more