pub struct ServerInfo {
pub number: i32,
pub state: u8,
pub class: u8,
pub message: String,
pub server: String,
pub procedure: String,
pub line: i32,
}Expand description
Server informational message.
Fields§
§number: i32Info number.
state: u8Info state.
class: u8Info class (severity).
message: StringInfo message text.
server: StringServer name.
procedure: StringProcedure name.
line: i32Line number.
Implementations§
Source§impl ServerInfo
impl ServerInfo
Sourcepub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
pub fn decode(src: &mut impl Buf) -> Result<Self, ProtocolError>
Decode an INFO token from bytes.
INFO tokens have the same structure as ERROR tokens but with lower severity.
Trait Implementations§
Source§impl Clone for ServerInfo
impl Clone for ServerInfo
Source§fn clone(&self) -> ServerInfo
fn clone(&self) -> ServerInfo
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 moreAuto Trait Implementations§
impl Freeze for ServerInfo
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
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