#[repr(u8)]pub enum PacketType {
Connect = 1,
Accept = 2,
Ack = 3,
Refuse = 4,
Redirect = 5,
Data = 6,
Null = 7,
Abort = 9,
Resend = 11,
Marker = 12,
Attention = 13,
Control = 14,
}Expand description
TNS packet types (found in packet header byte 5)
Variants§
Connect = 1
Initial connection request from client
Accept = 2
Server accepts connection
Ack = 3
Server acknowledges (rarely used)
Refuse = 4
Server refuses connection
Redirect = 5
Server redirects to different address
Data = 6
Data packet (contains protocol messages)
Null = 7
Null packet
Abort = 9
Abort connection
Resend = 11
Request packet resend
Marker = 12
Marker packet (break/reset/interrupt)
Attention = 13
Attention packet
Control = 14
Control packet (inband notifications)
Trait Implementations§
Source§impl Clone for PacketType
impl Clone for PacketType
Source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketType
impl Debug for PacketType
Source§impl PartialEq for PacketType
impl PartialEq for PacketType
Source§impl TryFrom<u8> for PacketType
impl TryFrom<u8> for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl Freeze for PacketType
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.