pub struct NetworkFrame {
pub message_type: u8,
pub payload: Bytes,
}Fields§
§message_type: u8§payload: BytesImplementations§
Source§impl NetworkFrame
impl NetworkFrame
pub fn new(message_type: u8, payload: Bytes) -> NetworkFrame
pub fn authentication_ok() -> NetworkFrame
pub fn command_complete(command_tag: String) -> NetworkFrame
pub fn data_rows( rows: Vec<SqlTuple>, ) -> Result<Vec<NetworkFrame>, NetworkFrameError>
pub fn ready_for_query() -> NetworkFrame
pub fn row_description( column_names: Vec<String>, ) -> Result<NetworkFrame, NetworkFrameError>
pub fn error_response( severity: PgErrorLevels, code: PgErrorCodes, message: String, ) -> NetworkFrame
Trait Implementations§
Source§impl Clone for NetworkFrame
impl Clone for NetworkFrame
Source§fn clone(&self) -> NetworkFrame
fn clone(&self) -> NetworkFrame
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 moreSource§impl Debug for NetworkFrame
impl Debug for NetworkFrame
Auto Trait Implementations§
impl !Freeze for NetworkFrame
impl RefUnwindSafe for NetworkFrame
impl Send for NetworkFrame
impl Sync for NetworkFrame
impl Unpin for NetworkFrame
impl UnwindSafe for NetworkFrame
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