pub struct ConnectionId(/* private fields */);
Expand description
Connection ID is either a number between [16, 255] or 0. Zero can be included in a response and means that the previous request was invalid. If a connection id is a number between [16, 255] it can be uniquely mapped to a connection index between [0, 239].
Implementations§
Source§impl ConnectionId
impl ConnectionId
Trait Implementations§
Source§impl Clone for ConnectionId
impl Clone for ConnectionId
Source§fn clone(&self) -> ConnectionId
fn clone(&self) -> ConnectionId
Returns a copy 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 ConnectionId
impl Debug for ConnectionId
Source§impl FromBytes for ConnectionId
impl FromBytes for ConnectionId
Source§fn from_bytes(i: &[u8]) -> IResult<&[u8], ConnectionId, (&[u8], ErrorKind)>
fn from_bytes(i: &[u8]) -> IResult<&[u8], ConnectionId, (&[u8], ErrorKind)>
Deserialize struct using
nom
from raw bytesSource§impl PartialEq for ConnectionId
impl PartialEq for ConnectionId
Source§impl ToBytes for ConnectionId
impl ToBytes for ConnectionId
impl Copy for ConnectionId
impl Eq for ConnectionId
impl StructuralPartialEq for ConnectionId
Auto Trait Implementations§
impl Freeze for ConnectionId
impl RefUnwindSafe for ConnectionId
impl Send for ConnectionId
impl Sync for ConnectionId
impl Unpin for ConnectionId
impl UnwindSafe for ConnectionId
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