#[repr(C)]pub struct TcpConnectReply {
pub status: u32,
pub _pad: u32,
pub conn_id: u64,
}Expand description
TCP connect reply.
Wire layout:
status @ 0..4, _pad @ 4..8, conn_id @ 8..16.
Fields§
§status: u32Status code: 0 = success.
_pad: u32§conn_id: u64Connection identifier for subsequent read/write operations.
Trait Implementations§
Source§impl Clone for TcpConnectReply
impl Clone for TcpConnectReply
Source§fn clone(&self) -> TcpConnectReply
fn clone(&self) -> TcpConnectReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TcpConnectReply
Source§impl Debug for TcpConnectReply
impl Debug for TcpConnectReply
Source§impl FromBytes for TcpConnectReply
impl FromBytes for TcpConnectReply
Source§impl FromZeros for TcpConnectReply
impl FromZeros for TcpConnectReply
impl Immutable for TcpConnectReply
Source§impl IntoBytes for TcpConnectReply
impl IntoBytes for TcpConnectReply
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl TryFromBytes for TcpConnectReply
impl TryFromBytes for TcpConnectReply
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for TcpConnectReply
impl RefUnwindSafe for TcpConnectReply
impl Send for TcpConnectReply
impl Sync for TcpConnectReply
impl Unpin for TcpConnectReply
impl UnsafeUnpin for TcpConnectReply
impl UnwindSafe for TcpConnectReply
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