pub struct InMemoryTransportEndpoint { /* private fields */ }Expand description
Local endpoint handle for a bounded in-memory client packet hub.
Implementations§
Source§impl InMemoryTransportEndpoint
impl InMemoryTransportEndpoint
Sourcepub const fn local_client_id(&self) -> ClientId
pub const fn local_client_id(&self) -> ClientId
Returns the local client id.
Sourcepub fn local_addr(&self) -> Result<Option<SocketAddr>, InMemoryTransportError>
pub fn local_addr(&self) -> Result<Option<SocketAddr>, InMemoryTransportError>
Returns the local endpoint address.
Trait Implementations§
Source§impl Clone for InMemoryTransportEndpoint
impl Clone for InMemoryTransportEndpoint
Source§fn clone(&self) -> InMemoryTransportEndpoint
fn clone(&self) -> InMemoryTransportEndpoint
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 moreSource§impl Debug for InMemoryTransportEndpoint
impl Debug for InMemoryTransportEndpoint
Source§impl TransportSink for InMemoryTransportEndpoint
impl TransportSink for InMemoryTransportEndpoint
Source§type Error = InMemoryTransportError
type Error = InMemoryTransportError
Transport error type.
Source§fn send(&mut self, packet: OutboundPacket) -> Result<(), Self::Error>
fn send(&mut self, packet: OutboundPacket) -> Result<(), Self::Error>
Sends one encoded packet.
Source§fn send_batch(&mut self, batch: PacketBatch) -> Result<(), Self::Error>
fn send_batch(&mut self, batch: PacketBatch) -> Result<(), Self::Error>
Sends a packet batch.
Auto Trait Implementations§
impl Freeze for InMemoryTransportEndpoint
impl RefUnwindSafe for InMemoryTransportEndpoint
impl Send for InMemoryTransportEndpoint
impl Sync for InMemoryTransportEndpoint
impl Unpin for InMemoryTransportEndpoint
impl UnsafeUnpin for InMemoryTransportEndpoint
impl UnwindSafe for InMemoryTransportEndpoint
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