#[non_exhaustive]pub enum GssEncResponse {
Accept,
Refuse,
}Expand description
Response to GssEncRequest.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl GssEncResponse
impl GssEncResponse
pub const BYTE_ACCEPT: u8 = 71u8
pub const BYTE_REFUSE: u8 = 78u8
pub const MESSAGE_LENGTH: usize = 1usize
Trait Implementations§
Source§impl Debug for GssEncResponse
impl Debug for GssEncResponse
Source§impl Message for GssEncResponse
impl Message for GssEncResponse
Source§fn message_length(&self) -> usize
fn message_length(&self) -> usize
Return the length of the message, including the length integer itself.
Source§fn encode_body(&self, buf: &mut BytesMut) -> PgWireResult<()>
fn encode_body(&self, buf: &mut BytesMut) -> PgWireResult<()>
Encode body part of the message.
Source§fn encode(&self, buf: &mut BytesMut) -> PgWireResult<()>
fn encode(&self, buf: &mut BytesMut) -> PgWireResult<()>
Default implementation for encoding message. Read more
Source§fn decode_body(
_: &mut BytesMut,
_: usize,
_ctx: &DecodeContext,
) -> PgWireResult<Self>
fn decode_body( _: &mut BytesMut, _: usize, _ctx: &DecodeContext, ) -> PgWireResult<Self>
Decode body part of the message.
Source§fn decode(
buf: &mut BytesMut,
_ctx: &DecodeContext,
) -> PgWireResult<Option<Self>>
fn decode( buf: &mut BytesMut, _ctx: &DecodeContext, ) -> PgWireResult<Option<Self>>
Default implementation for decoding message. Read more
Source§fn message_type() -> Option<u8>
fn message_type() -> Option<u8>
Return the type code of the message. In order to maintain backward
compatibility,
Startup has no message type.Source§fn max_message_length() -> usize
fn max_message_length() -> usize
Return the max length of message in this type. Read more
Source§impl PartialEq for GssEncResponse
impl PartialEq for GssEncResponse
impl StructuralPartialEq for GssEncResponse
Auto Trait Implementations§
impl Freeze for GssEncResponse
impl RefUnwindSafe for GssEncResponse
impl Send for GssEncResponse
impl Sync for GssEncResponse
impl Unpin for GssEncResponse
impl UnwindSafe for GssEncResponse
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