pub struct ChannelTransport<C> { /* private fields */ }Expand description
A [Channel] as a MessageTransport, so a handshake can be driven over anything that
carries messages.
A message over MAX_MESSAGE is refused either way (InvalidInput going out, InvalidData
coming in), and so is a [Failure::Protocol]; the message drivers report both as
DriveError::Io. The read and write timeouts the _until drivers
set bound receive and send_timeout; a channel that ended in order is UnexpectedEof. Nothing here authenticates the peer: the handshake does.
Implementations§
Source§impl<C: Channel> ChannelTransport<C>
impl<C: Channel> ChannelTransport<C>
Trait Implementations§
Source§impl<C> Debug for ChannelTransport<C>
impl<C> Debug for ChannelTransport<C>
Source§impl<C: Channel> MessageTransport for ChannelTransport<C>
impl<C: Channel> MessageTransport for ChannelTransport<C>
Source§impl<C> ReadTimeout for ChannelTransport<C>
impl<C> ReadTimeout for ChannelTransport<C>
Source§impl<C> WriteTimeout for ChannelTransport<C>
impl<C> WriteTimeout for ChannelTransport<C>
Auto Trait Implementations§
impl<C> !Freeze for ChannelTransport<C>
impl<C> RefUnwindSafe for ChannelTransport<C>where
C: RefUnwindSafe,
impl<C> Send for ChannelTransport<C>where
C: Send,
impl<C> Sync for ChannelTransport<C>where
C: Sync,
impl<C> Unpin for ChannelTransport<C>where
C: Unpin,
impl<C> UnsafeUnpin for ChannelTransport<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for ChannelTransport<C>where
C: UnwindSafe,
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