pub struct BackendMessage {
pub tag: u8,
pub payload: Bytes,
}Fields§
§tag: u8§payload: BytesImplementations§
Source§impl BackendMessage
impl BackendMessage
Sourcepub fn is_ready_for_query(&self) -> bool
pub fn is_ready_for_query(&self) -> bool
Returns true if this is a ReadyForQuery (‘Z’)
Sourcepub fn is_copy_both_response(&self) -> bool
pub fn is_copy_both_response(&self) -> bool
Returns true if this is CopyBothResponse (‘W’)
Sourcepub fn is_copy_data(&self) -> bool
pub fn is_copy_data(&self) -> bool
Returns true if this is CopyData (‘d’)
Sourcepub fn is_auth_request(&self) -> bool
pub fn is_auth_request(&self) -> bool
Returns true if this is AuthenticationRequest (‘R’)
Trait Implementations§
Source§impl Clone for BackendMessage
impl Clone for BackendMessage
Source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
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 BackendMessage
impl Debug for BackendMessage
Source§impl PartialEq for BackendMessage
impl PartialEq for BackendMessage
impl Eq for BackendMessage
impl StructuralPartialEq for BackendMessage
Auto Trait Implementations§
impl !Freeze for BackendMessage
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnwindSafe for BackendMessage
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