pub struct ConnectionSyncReader<'r>(/* private fields */);Implementations§
Source§impl<'r> ConnectionSyncReader<'r>
impl<'r> ConnectionSyncReader<'r>
pub const FIELD_COUNT: usize = 3usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn from(&self) -> BytesReader<'r>
pub fn to(&self) -> BytesReader<'r>
pub fn route(&self) -> BytesVecReader<'r>
Trait Implementations§
Source§impl<'r> Clone for ConnectionSyncReader<'r>
impl<'r> Clone for ConnectionSyncReader<'r>
Source§fn clone(&self) -> ConnectionSyncReader<'r>
fn clone(&self) -> ConnectionSyncReader<'r>
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<'r> Debug for ConnectionSyncReader<'r>
impl<'r> Debug for ConnectionSyncReader<'r>
Source§impl<'r> Display for ConnectionSyncReader<'r>
impl<'r> Display for ConnectionSyncReader<'r>
Source§impl<'r> From<ConnectionSyncReader<'r>> for HolePunchingMessageUnionReader<'r>
impl<'r> From<ConnectionSyncReader<'r>> for HolePunchingMessageUnionReader<'r>
Source§fn from(item: ConnectionSyncReader<'r>) -> HolePunchingMessageUnionReader<'r>
fn from(item: ConnectionSyncReader<'r>) -> HolePunchingMessageUnionReader<'r>
Converts to this type from the input type.
Source§impl<'r> LowerHex for ConnectionSyncReader<'r>
impl<'r> LowerHex for ConnectionSyncReader<'r>
Source§impl<'r> Reader<'r> for ConnectionSyncReader<'r>
impl<'r> Reader<'r> for ConnectionSyncReader<'r>
const NAME: &'static str = "ConnectionSyncReader"
type Entity = ConnectionSync
fn to_entity(&self) -> <ConnectionSyncReader<'r> as Reader<'r>>::Entity
fn new_unchecked(slice: &'r [u8]) -> ConnectionSyncReader<'r>
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for ConnectionSyncReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for ConnectionSyncReader<'r>
impl<'r> RefUnwindSafe for ConnectionSyncReader<'r>
impl<'r> Send for ConnectionSyncReader<'r>
impl<'r> Sync for ConnectionSyncReader<'r>
impl<'r> Unpin for ConnectionSyncReader<'r>
impl<'r> UnwindSafe for ConnectionSyncReader<'r>
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<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
Source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..) with confidence and we assume that it’s impossible to fail.Source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..) with confidence and we assume that it’s impossible to fail.