Enum edgedb_protocol::server_message::ServerMessage [−][src]
#[non_exhaustive]
pub enum ServerMessage {
Show 15 variants
ServerHandshake(ServerHandshake),
UnknownMessage(u8, Bytes),
LogMessage(LogMessage),
ErrorResponse(ErrorResponse),
Authentication(Authentication),
ReadyForCommand(ReadyForCommand),
ServerKeyData(ServerKeyData),
ParameterStatus(ParameterStatus),
CommandComplete(CommandComplete),
PrepareComplete(PrepareComplete),
CommandDataDescription(CommandDataDescription),
Data(Data),
RestoreReady(RestoreReady),
DumpHeader(RawPacket),
DumpBlock(RawPacket),
}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.
ServerHandshake(ServerHandshake)Tuple Fields of ServerHandshake
LogMessage(LogMessage)Tuple Fields of LogMessage
0: LogMessageErrorResponse(ErrorResponse)Tuple Fields of ErrorResponse
Authentication(Authentication)Tuple Fields of Authentication
ReadyForCommand(ReadyForCommand)Tuple Fields of ReadyForCommand
ServerKeyData(ServerKeyData)Tuple Fields of ServerKeyData
ParameterStatus(ParameterStatus)Tuple Fields of ParameterStatus
CommandComplete(CommandComplete)Tuple Fields of CommandComplete
PrepareComplete(PrepareComplete)Tuple Fields of PrepareComplete
CommandDataDescription(CommandDataDescription)Tuple Fields of CommandDataDescription
Data(Data)Tuple Fields of Data
0: DataRestoreReady(RestoreReady)Tuple Fields of RestoreReady
0: RestoreReadyDumpHeader(RawPacket)Tuple Fields of DumpHeader
0: RawPacketDumpBlock(RawPacket)Tuple Fields of DumpBlock
0: RawPacketImplementations
Decode exactly one frame from the buffer
This expect full frame already be in the buffer. It can return arbitrary error or be silent if message is only partially present in the buffer or if extra data present.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ServerMessage
impl Send for ServerMessage
impl Sync for ServerMessage
impl Unpin for ServerMessage
impl UnwindSafe for ServerMessage
Blanket Implementations
Mutably borrows from an owned value. Read more