pub struct TcpLayer {}
Implementations§
Trait Implementations§
source§impl RequestReplyLayer for TcpLayer
impl RequestReplyLayer for TcpLayer
type Address = SocketAddr
type RequestData = Vec<u8>
type ReplyData = Vec<u8>
type Error = Error
fn listen( &mut self, addr: Self::Address ) -> Result<Box<dyn Iterator<Item = Result<Box<dyn ListenConnection<RequestData = Self::RequestData, ReplyData = Self::ReplyData, Error = Self::Error>>, Self::Error>>>, Self::Error>
fn connect( &mut self, addr: Self::Address ) -> Result<Box<dyn RequestReplyConnection<RequestData = Self::RequestData, ReplyData = Self::ReplyData, Error = Self::Error>>, Self::Error>
Auto Trait Implementations§
impl Freeze for TcpLayer
impl RefUnwindSafe for TcpLayer
impl Send for TcpLayer
impl Sync for TcpLayer
impl Unpin for TcpLayer
impl UnwindSafe for TcpLayer
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