pub struct ConnectionSync(/* private fields */);Implementations§
Source§impl ConnectionSync
impl ConnectionSync
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) -> Bytes
pub fn to(&self) -> Bytes
pub fn route(&self) -> BytesVec
pub fn as_reader<'r>(&'r self) -> ConnectionSyncReader<'r>
Trait Implementations§
Source§impl Clone for ConnectionSync
impl Clone for ConnectionSync
Source§fn clone(&self) -> ConnectionSync
fn clone(&self) -> ConnectionSync
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 ConnectionSync
impl Debug for ConnectionSync
Source§impl Default for ConnectionSync
impl Default for ConnectionSync
Source§fn default() -> ConnectionSync
fn default() -> ConnectionSync
Returns the “default value” for a type. Read more
Source§impl Display for ConnectionSync
impl Display for ConnectionSync
Source§impl Entity for ConnectionSync
impl Entity for ConnectionSync
const NAME: &'static str = "ConnectionSync"
type Builder = ConnectionSyncBuilder
fn new_unchecked(data: Bytes) -> ConnectionSync
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<ConnectionSync, VerificationError>
fn from_compatible_slice( slice: &[u8], ) -> Result<ConnectionSync, VerificationError>
fn new_builder() -> <ConnectionSync as Entity>::Builder
fn as_builder(self) -> <ConnectionSync as Entity>::Builder
Source§impl From<ConnectionSync> for HolePunchingMessage
impl From<ConnectionSync> for HolePunchingMessage
Source§fn from(value: ConnectionSync) -> HolePunchingMessage
fn from(value: ConnectionSync) -> HolePunchingMessage
Converts to this type from the input type.
Source§impl From<ConnectionSync> for HolePunchingMessageUnion
impl From<ConnectionSync> for HolePunchingMessageUnion
Source§fn from(item: ConnectionSync) -> HolePunchingMessageUnion
fn from(item: ConnectionSync) -> HolePunchingMessageUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectionSync
impl RefUnwindSafe for ConnectionSync
impl Send for ConnectionSync
impl Sync for ConnectionSync
impl Unpin for ConnectionSync
impl UnwindSafe for ConnectionSync
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)