pub trait Protocol: Sized {
Show 21 methods
// Required methods
fn read<'a, R: AsyncRead + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>;
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>;
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>;
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>;
// Provided methods
fn read_owned<R: AsyncRead + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>> { ... }
fn try_read(
stream: &mut impl Read,
buf: &mut Vec<u8>,
) -> Result<Option<Self>, ReadError> { ... }
fn read_ws021<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>> { ... }
fn read_ws024<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>> { ... }
fn read_ws026<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>> { ... }
fn write_ws021<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
where Self: Sync { ... }
fn write_ws024<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
where Self: Sync { ... }
fn write_ws026<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
where Self: Sync { ... }
fn read_ws_sync021(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError> { ... }
fn read_ws_sync024(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError> { ... }
fn read_ws_sync026(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError> { ... }
fn write_ws_sync021(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError> { ... }
fn write_ws_sync024(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError> { ... }
fn write_ws_sync026(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError> { ... }
fn read_ws_owned021<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>> { ... }
fn read_ws_owned024<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>> { ... }
fn read_ws_owned026<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>> { ... }
}
Expand description
This trait allows reading a value of an implementing type from an async or sync stream, as well as writing one to an async or sync sink.
Required Methods§
Sourcefn read<'a, R: AsyncRead + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
Reads a value of this type from an async stream.
§Cancellation safety
Implementations of this method are generally not cancellation safe.
Sourcefn write<'a, W: AsyncWrite + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
Writes a value of this type to an async sink.
§Cancellation safety
Implementations of this method are generally not cancellation safe.
Sourcefn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
Reads a value of this type from a sync stream.
Sourcefn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Writes a value of this type to a sync sink.
Provided Methods§
Sourcefn read_owned<R: AsyncRead + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
fn read_owned<R: AsyncRead + Unpin + Send + 'static>( stream: R, ) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
Takes ownership of an async stream, reads a value of this type from it, then returns it along with the stream.
This can be used to get around drop glue issues that might arise with read
.
Sourcefn try_read(
stream: &mut impl Read,
buf: &mut Vec<u8>,
) -> Result<Option<Self>, ReadError>
fn try_read( stream: &mut impl Read, buf: &mut Vec<u8>, ) -> Result<Option<Self>, ReadError>
Attempts to read a value of this type from a prefix in a buffer and a suffix in a sync stream.
If io::ErrorKind::WouldBlock
is encountered, Ok(None)
is returned and the portion read successfully is appended to buf
. Otherwise, the prefix representing the returned value is removed from buf
.
Callers, not implementations, should ensure that stream
is non-blocking if desired.
§Example
use {
std::{
io,
net::TcpStream,
},
async_proto::Protocol,
};
struct Client {
tcp_stream: TcpStream,
buf: Vec<u8>,
}
impl Client {
fn new(tcp_stream: TcpStream) -> Self {
Self {
tcp_stream,
buf: Vec::default(),
}
}
fn try_read<T: Protocol>(&mut self) -> io::Result<Option<T>> {
self.tcp_stream.set_nonblocking(true)?;
Ok(T::try_read(&mut self.tcp_stream, &mut self.buf)?)
}
fn write<T: Protocol>(&mut self, msg: &T) -> io::Result<()> {
self.tcp_stream.set_nonblocking(false)?;
msg.write_sync(&mut self.tcp_stream)?;
Ok(())
}
}
Sourcefn read_ws021<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
Available on crate feature tokio-tungstenite021
only.
fn read_ws021<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
tokio-tungstenite021
only.Reads a value of this type from a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is cancellation safe.
Sourcefn read_ws024<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
Available on crate feature tokio-tungstenite024
only.
fn read_ws024<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
tokio-tungstenite024
only.Reads a value of this type from a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is cancellation safe.
Sourcefn read_ws026<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>(
stream: &'a mut R,
) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
Available on crate feature tokio-tungstenite026
only.
fn read_ws026<'a, R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
tokio-tungstenite026
only.Reads a value of this type from a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is cancellation safe.
Sourcefn write_ws021<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
Available on crate feature tokio-tungstenite021
only.
fn write_ws021<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
tokio-tungstenite021
only.Writes a value of this type to a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is not cancellation safe.
Sourcefn write_ws024<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
Available on crate feature tokio-tungstenite024
only.
fn write_ws024<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
tokio-tungstenite024
only.Writes a value of this type to a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is not cancellation safe.
Sourcefn write_ws026<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
Available on crate feature tokio-tungstenite026
only.
fn write_ws026<'a, W: Sink<Message, Error = Error> + Unpin + Send + 'a>(
&'a self,
sink: &'a mut W,
) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>where
Self: Sync,
tokio-tungstenite026
only.Writes a value of this type to a tokio-tungstenite
websocket.
§Cancellation safety
The default implementation of this method is not cancellation safe.
Sourcefn read_ws_sync021(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError>
Available on crate feature tokio-tungstenite021
only.
fn read_ws_sync021( websocket: &mut WebSocket<impl Read + Write>, ) -> Result<Self, ReadError>
tokio-tungstenite021
only.Reads a value of this type from a tungstenite021
websocket.
Sourcefn read_ws_sync024(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError>
Available on crate feature tokio-tungstenite024
only.
fn read_ws_sync024( websocket: &mut WebSocket<impl Read + Write>, ) -> Result<Self, ReadError>
tokio-tungstenite024
only.Reads a value of this type from a tungstenite024
websocket.
Sourcefn read_ws_sync026(
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<Self, ReadError>
Available on crate feature tokio-tungstenite026
only.
fn read_ws_sync026( websocket: &mut WebSocket<impl Read + Write>, ) -> Result<Self, ReadError>
tokio-tungstenite026
only.Reads a value of this type from a tungstenite026
websocket.
Sourcefn write_ws_sync021(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError>
Available on crate feature tokio-tungstenite021
only.
fn write_ws_sync021( &self, websocket: &mut WebSocket<impl Read + Write>, ) -> Result<(), WriteError>
tokio-tungstenite021
only.Writes a value of this type to a tungstenite021
websocket.
Sourcefn write_ws_sync024(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError>
Available on crate feature tokio-tungstenite024
only.
fn write_ws_sync024( &self, websocket: &mut WebSocket<impl Read + Write>, ) -> Result<(), WriteError>
tokio-tungstenite024
only.Writes a value of this type to a tungstenite024
websocket.
Sourcefn write_ws_sync026(
&self,
websocket: &mut WebSocket<impl Read + Write>,
) -> Result<(), WriteError>
Available on crate feature tokio-tungstenite026
only.
fn write_ws_sync026( &self, websocket: &mut WebSocket<impl Read + Write>, ) -> Result<(), WriteError>
tokio-tungstenite026
only.Writes a value of this type to a tungstenite026
websocket.
Sourcefn read_ws_owned021<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
Available on crate feature tokio-tungstenite021
only.
fn read_ws_owned021<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>( stream: R, ) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
tokio-tungstenite021
only.Takes ownership of an async websocket stream, reads a value of this type from it, then returns it along with the stream.
This can be used to get around drop glue issues that might arise with read_ws
.
Sourcefn read_ws_owned024<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
Available on crate feature tokio-tungstenite024
only.
fn read_ws_owned024<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>( stream: R, ) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
tokio-tungstenite024
only.Takes ownership of an async websocket stream, reads a value of this type from it, then returns it along with the stream.
This can be used to get around drop glue issues that might arise with read_ws
.
Sourcefn read_ws_owned026<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>(
stream: R,
) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
Available on crate feature tokio-tungstenite026
only.
fn read_ws_owned026<R: Stream<Item = Result<Message, Error>> + Unpin + Send + 'static>( stream: R, ) -> Pin<Box<dyn Future<Output = Result<(R, Self), ReadError>> + Send>>
tokio-tungstenite026
only.Takes ownership of an async websocket stream, reads a value of this type from it, then returns it along with the stream.
This can be used to get around drop glue issues that might arise with read_ws
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Protocol for Infallible
impl Protocol for Infallible
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Tz
Available on crate feature chrono-tz
only.A timezone is represented as an IANA timezone identifier.
impl Protocol for Tz
chrono-tz
only.A timezone is represented as an IANA timezone identifier.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ObjectId
Available on crate feature gix-hash
only.
impl Protocol for ObjectId
gix-hash
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Value
Available on crate feature serde_json
only.
impl Protocol for Value
serde_json
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for bool
Represented as one byte, with 0
for false
and 1
for true
.
impl Protocol for bool
Represented as one byte, with 0
for false
and 1
for true
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for f32
Primitive number types are encoded in big-endian format.
impl Protocol for f32
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for f64
Primitive number types are encoded in big-endian format.
impl Protocol for f64
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for i8
Primitive number types are encoded in big-endian format.
impl Protocol for i8
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for i16
Primitive number types are encoded in big-endian format.
impl Protocol for i16
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for i32
Primitive number types are encoded in big-endian format.
impl Protocol for i32
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for i64
Primitive number types are encoded in big-endian format.
impl Protocol for i64
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for i128
Primitive number types are encoded in big-endian format.
impl Protocol for i128
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for u8
Primitive number types are encoded in big-endian format.
impl Protocol for u8
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for u16
Primitive number types are encoded in big-endian format.
impl Protocol for u16
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for u32
Primitive number types are encoded in big-endian format.
impl Protocol for u32
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for u64
Primitive number types are encoded in big-endian format.
impl Protocol for u64
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for u128
Primitive number types are encoded in big-endian format.
impl Protocol for u128
Primitive number types are encoded in big-endian format.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ()
impl Protocol for ()
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for String
A string is encoded in UTF-8 and prefixed with the length in bytes as a u64
.
impl Protocol for String
A string is encoded in UTF-8 and prefixed with the length in bytes as a u64
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RangeFull
impl Protocol for RangeFull
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Duration
impl Protocol for Duration
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Bytes
Available on crate feature bytes
only.
impl Protocol for Bytes
bytes
only.Using Bytes
is recommended for sending large amounts of data, since the Protocol
implementation for Vec<u8>
reads and writes each byte individually.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NaiveDate
Available on crate feature chrono
only.
impl Protocol for NaiveDate
chrono
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for FixedOffset
Available on crate feature chrono
only.
impl Protocol for FixedOffset
chrono
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Utc
Available on crate feature chrono
only.
impl Protocol for Utc
chrono
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AED
Available on crate feature doubloon
only.
impl Protocol for AED
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AFN
Available on crate feature doubloon
only.
impl Protocol for AFN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ALL
Available on crate feature doubloon
only.
impl Protocol for ALL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AMD
Available on crate feature doubloon
only.
impl Protocol for AMD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ANG
Available on crate feature doubloon
only.
impl Protocol for ANG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AOA
Available on crate feature doubloon
only.
impl Protocol for AOA
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ARS
Available on crate feature doubloon
only.
impl Protocol for ARS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AUD
Available on crate feature doubloon
only.
impl Protocol for AUD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AWG
Available on crate feature doubloon
only.
impl Protocol for AWG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AZN
Available on crate feature doubloon
only.
impl Protocol for AZN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BAM
Available on crate feature doubloon
only.
impl Protocol for BAM
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BBD
Available on crate feature doubloon
only.
impl Protocol for BBD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BDT
Available on crate feature doubloon
only.
impl Protocol for BDT
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BGN
Available on crate feature doubloon
only.
impl Protocol for BGN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BHD
Available on crate feature doubloon
only.
impl Protocol for BHD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BIF
Available on crate feature doubloon
only.
impl Protocol for BIF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BMD
Available on crate feature doubloon
only.
impl Protocol for BMD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BND
Available on crate feature doubloon
only.
impl Protocol for BND
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BOB
Available on crate feature doubloon
only.
impl Protocol for BOB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BOV
Available on crate feature doubloon
only.
impl Protocol for BOV
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BRL
Available on crate feature doubloon
only.
impl Protocol for BRL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BSD
Available on crate feature doubloon
only.
impl Protocol for BSD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BTN
Available on crate feature doubloon
only.
impl Protocol for BTN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BWP
Available on crate feature doubloon
only.
impl Protocol for BWP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BYN
Available on crate feature doubloon
only.
impl Protocol for BYN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BZD
Available on crate feature doubloon
only.
impl Protocol for BZD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CAD
Available on crate feature doubloon
only.
impl Protocol for CAD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CDF
Available on crate feature doubloon
only.
impl Protocol for CDF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CHE
Available on crate feature doubloon
only.
impl Protocol for CHE
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CHF
Available on crate feature doubloon
only.
impl Protocol for CHF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CHW
Available on crate feature doubloon
only.
impl Protocol for CHW
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CLF
Available on crate feature doubloon
only.
impl Protocol for CLF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CLP
Available on crate feature doubloon
only.
impl Protocol for CLP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CNY
Available on crate feature doubloon
only.
impl Protocol for CNY
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for COP
Available on crate feature doubloon
only.
impl Protocol for COP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for COU
Available on crate feature doubloon
only.
impl Protocol for COU
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CRC
Available on crate feature doubloon
only.
impl Protocol for CRC
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CUC
Available on crate feature doubloon
only.
impl Protocol for CUC
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CUP
Available on crate feature doubloon
only.
impl Protocol for CUP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CVE
Available on crate feature doubloon
only.
impl Protocol for CVE
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CZK
Available on crate feature doubloon
only.
impl Protocol for CZK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for DJF
Available on crate feature doubloon
only.
impl Protocol for DJF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for DKK
Available on crate feature doubloon
only.
impl Protocol for DKK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for DOP
Available on crate feature doubloon
only.
impl Protocol for DOP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for DZD
Available on crate feature doubloon
only.
impl Protocol for DZD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for EGP
Available on crate feature doubloon
only.
impl Protocol for EGP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ERN
Available on crate feature doubloon
only.
impl Protocol for ERN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ETB
Available on crate feature doubloon
only.
impl Protocol for ETB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for EUR
Available on crate feature doubloon
only.
impl Protocol for EUR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for FJD
Available on crate feature doubloon
only.
impl Protocol for FJD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for FKP
Available on crate feature doubloon
only.
impl Protocol for FKP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GBP
Available on crate feature doubloon
only.
impl Protocol for GBP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GEL
Available on crate feature doubloon
only.
impl Protocol for GEL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GHS
Available on crate feature doubloon
only.
impl Protocol for GHS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GIP
Available on crate feature doubloon
only.
impl Protocol for GIP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GMD
Available on crate feature doubloon
only.
impl Protocol for GMD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GNF
Available on crate feature doubloon
only.
impl Protocol for GNF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GTQ
Available on crate feature doubloon
only.
impl Protocol for GTQ
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GYD
Available on crate feature doubloon
only.
impl Protocol for GYD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for HKD
Available on crate feature doubloon
only.
impl Protocol for HKD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for HNL
Available on crate feature doubloon
only.
impl Protocol for HNL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for HTG
Available on crate feature doubloon
only.
impl Protocol for HTG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for HUF
Available on crate feature doubloon
only.
impl Protocol for HUF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for IDR
Available on crate feature doubloon
only.
impl Protocol for IDR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ILS
Available on crate feature doubloon
only.
impl Protocol for ILS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for INR
Available on crate feature doubloon
only.
impl Protocol for INR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for IQD
Available on crate feature doubloon
only.
impl Protocol for IQD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for IRR
Available on crate feature doubloon
only.
impl Protocol for IRR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ISK
Available on crate feature doubloon
only.
impl Protocol for ISK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for JMD
Available on crate feature doubloon
only.
impl Protocol for JMD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for JOD
Available on crate feature doubloon
only.
impl Protocol for JOD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for JPY
Available on crate feature doubloon
only.
impl Protocol for JPY
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KES
Available on crate feature doubloon
only.
impl Protocol for KES
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KGS
Available on crate feature doubloon
only.
impl Protocol for KGS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KHR
Available on crate feature doubloon
only.
impl Protocol for KHR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KMF
Available on crate feature doubloon
only.
impl Protocol for KMF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KPW
Available on crate feature doubloon
only.
impl Protocol for KPW
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KRW
Available on crate feature doubloon
only.
impl Protocol for KRW
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KWD
Available on crate feature doubloon
only.
impl Protocol for KWD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KYD
Available on crate feature doubloon
only.
impl Protocol for KYD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for KZT
Available on crate feature doubloon
only.
impl Protocol for KZT
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LAK
Available on crate feature doubloon
only.
impl Protocol for LAK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LBP
Available on crate feature doubloon
only.
impl Protocol for LBP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LKR
Available on crate feature doubloon
only.
impl Protocol for LKR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LRD
Available on crate feature doubloon
only.
impl Protocol for LRD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LSL
Available on crate feature doubloon
only.
impl Protocol for LSL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for LYD
Available on crate feature doubloon
only.
impl Protocol for LYD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MAD
Available on crate feature doubloon
only.
impl Protocol for MAD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MDL
Available on crate feature doubloon
only.
impl Protocol for MDL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MGA
Available on crate feature doubloon
only.
impl Protocol for MGA
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MKD
Available on crate feature doubloon
only.
impl Protocol for MKD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MMK
Available on crate feature doubloon
only.
impl Protocol for MMK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MNT
Available on crate feature doubloon
only.
impl Protocol for MNT
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MOP
Available on crate feature doubloon
only.
impl Protocol for MOP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MRU
Available on crate feature doubloon
only.
impl Protocol for MRU
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MUR
Available on crate feature doubloon
only.
impl Protocol for MUR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MVR
Available on crate feature doubloon
only.
impl Protocol for MVR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MWK
Available on crate feature doubloon
only.
impl Protocol for MWK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MXN
Available on crate feature doubloon
only.
impl Protocol for MXN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MXV
Available on crate feature doubloon
only.
impl Protocol for MXV
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MYR
Available on crate feature doubloon
only.
impl Protocol for MYR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MZN
Available on crate feature doubloon
only.
impl Protocol for MZN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NAD
Available on crate feature doubloon
only.
impl Protocol for NAD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NGN
Available on crate feature doubloon
only.
impl Protocol for NGN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NIO
Available on crate feature doubloon
only.
impl Protocol for NIO
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NOK
Available on crate feature doubloon
only.
impl Protocol for NOK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NPR
Available on crate feature doubloon
only.
impl Protocol for NPR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NZD
Available on crate feature doubloon
only.
impl Protocol for NZD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for OMR
Available on crate feature doubloon
only.
impl Protocol for OMR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PAB
Available on crate feature doubloon
only.
impl Protocol for PAB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PEN
Available on crate feature doubloon
only.
impl Protocol for PEN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PGK
Available on crate feature doubloon
only.
impl Protocol for PGK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PHP
Available on crate feature doubloon
only.
impl Protocol for PHP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PKR
Available on crate feature doubloon
only.
impl Protocol for PKR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PLN
Available on crate feature doubloon
only.
impl Protocol for PLN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for PYG
Available on crate feature doubloon
only.
impl Protocol for PYG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for QAR
Available on crate feature doubloon
only.
impl Protocol for QAR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RON
Available on crate feature doubloon
only.
impl Protocol for RON
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RSD
Available on crate feature doubloon
only.
impl Protocol for RSD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RUB
Available on crate feature doubloon
only.
impl Protocol for RUB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RWF
Available on crate feature doubloon
only.
impl Protocol for RWF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SAR
Available on crate feature doubloon
only.
impl Protocol for SAR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SBD
Available on crate feature doubloon
only.
impl Protocol for SBD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SCR
Available on crate feature doubloon
only.
impl Protocol for SCR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SDG
Available on crate feature doubloon
only.
impl Protocol for SDG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SEK
Available on crate feature doubloon
only.
impl Protocol for SEK
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SGD
Available on crate feature doubloon
only.
impl Protocol for SGD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SHP
Available on crate feature doubloon
only.
impl Protocol for SHP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SLE
Available on crate feature doubloon
only.
impl Protocol for SLE
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SOS
Available on crate feature doubloon
only.
impl Protocol for SOS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SRD
Available on crate feature doubloon
only.
impl Protocol for SRD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SSP
Available on crate feature doubloon
only.
impl Protocol for SSP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for STN
Available on crate feature doubloon
only.
impl Protocol for STN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SVC
Available on crate feature doubloon
only.
impl Protocol for SVC
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SYP
Available on crate feature doubloon
only.
impl Protocol for SYP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SZL
Available on crate feature doubloon
only.
impl Protocol for SZL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for THB
Available on crate feature doubloon
only.
impl Protocol for THB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TJS
Available on crate feature doubloon
only.
impl Protocol for TJS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TMT
Available on crate feature doubloon
only.
impl Protocol for TMT
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TND
Available on crate feature doubloon
only.
impl Protocol for TND
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TOP
Available on crate feature doubloon
only.
impl Protocol for TOP
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TRY
Available on crate feature doubloon
only.
impl Protocol for TRY
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TTD
Available on crate feature doubloon
only.
impl Protocol for TTD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TWD
Available on crate feature doubloon
only.
impl Protocol for TWD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TZS
Available on crate feature doubloon
only.
impl Protocol for TZS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UAH
Available on crate feature doubloon
only.
impl Protocol for UAH
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UGX
Available on crate feature doubloon
only.
impl Protocol for UGX
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for USD
Available on crate feature doubloon
only.
impl Protocol for USD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for USN
Available on crate feature doubloon
only.
impl Protocol for USN
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UYI
Available on crate feature doubloon
only.
impl Protocol for UYI
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UYU
Available on crate feature doubloon
only.
impl Protocol for UYU
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UYW
Available on crate feature doubloon
only.
impl Protocol for UYW
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UZS
Available on crate feature doubloon
only.
impl Protocol for UZS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for VED
Available on crate feature doubloon
only.
impl Protocol for VED
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for VES
Available on crate feature doubloon
only.
impl Protocol for VES
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for VND
Available on crate feature doubloon
only.
impl Protocol for VND
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for VUV
Available on crate feature doubloon
only.
impl Protocol for VUV
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for WST
Available on crate feature doubloon
only.
impl Protocol for WST
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XAF
Available on crate feature doubloon
only.
impl Protocol for XAF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XAG
Available on crate feature doubloon
only.
impl Protocol for XAG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XAU
Available on crate feature doubloon
only.
impl Protocol for XAU
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XBA
Available on crate feature doubloon
only.
impl Protocol for XBA
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XBB
Available on crate feature doubloon
only.
impl Protocol for XBB
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XBC
Available on crate feature doubloon
only.
impl Protocol for XBC
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XBD
Available on crate feature doubloon
only.
impl Protocol for XBD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XCD
Available on crate feature doubloon
only.
impl Protocol for XCD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XDR
Available on crate feature doubloon
only.
impl Protocol for XDR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XOF
Available on crate feature doubloon
only.
impl Protocol for XOF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XPD
Available on crate feature doubloon
only.
impl Protocol for XPD
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XPF
Available on crate feature doubloon
only.
impl Protocol for XPF
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XPT
Available on crate feature doubloon
only.
impl Protocol for XPT
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XSU
Available on crate feature doubloon
only.
impl Protocol for XSU
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XTS
Available on crate feature doubloon
only.
impl Protocol for XTS
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XUA
Available on crate feature doubloon
only.
impl Protocol for XUA
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for XXX
Available on crate feature doubloon
only.
impl Protocol for XXX
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for YER
Available on crate feature doubloon
only.
impl Protocol for YER
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ZAR
Available on crate feature doubloon
only.
impl Protocol for ZAR
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ZMW
Available on crate feature doubloon
only.
impl Protocol for ZMW
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ZWG
Available on crate feature doubloon
only.
impl Protocol for ZWG
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ZWL
Available on crate feature doubloon
only.
impl Protocol for ZWL
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Oid
Available on crate feature git2
only.A git object ID uses its native binary representation, a sequence of 20 bytes.
impl Protocol for Oid
git2
only.A git object ID uses its native binary representation, a sequence of 20 bytes.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Decimal
Available on crate feature rust_decimal
only.
impl Protocol for Decimal
rust_decimal
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for BuildMetadata
Available on crate feature semver
only.
impl Protocol for BuildMetadata
semver
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Prerelease
Available on crate feature semver
only.
impl Protocol for Prerelease
semver
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Version
Available on crate feature semver
only.
impl Protocol for Version
semver
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Map<String, Value>
Available on crate feature serde_json
only.
impl Protocol for Map<String, Value>
serde_json
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Number
Available on crate feature serde_json
only.
impl Protocol for Number
serde_json
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ApplicationId
Available on crate feature serenity
only.
impl Protocol for ApplicationId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AttachmentId
Available on crate feature serenity
only.
impl Protocol for AttachmentId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for AuditLogEntryId
Available on crate feature serenity
only.
impl Protocol for AuditLogEntryId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ChannelId
Available on crate feature serenity
only.
impl Protocol for ChannelId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CommandId
Available on crate feature serenity
only.
impl Protocol for CommandId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CommandPermissionId
Available on crate feature serenity
only.
impl Protocol for CommandPermissionId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for CommandVersionId
Available on crate feature serenity
only.
impl Protocol for CommandVersionId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for EmojiId
Available on crate feature serenity
only.
impl Protocol for EmojiId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for EntitlementId
Available on crate feature serenity
only.
impl Protocol for EntitlementId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ForumTagId
Available on crate feature serenity
only.
impl Protocol for ForumTagId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GenericId
Available on crate feature serenity
only.
impl Protocol for GenericId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for GuildId
Available on crate feature serenity
only.
impl Protocol for GuildId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for IntegrationId
Available on crate feature serenity
only.
impl Protocol for IntegrationId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for InteractionId
Available on crate feature serenity
only.
impl Protocol for InteractionId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for MessageId
Available on crate feature serenity
only.
impl Protocol for MessageId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RoleId
Available on crate feature serenity
only.
impl Protocol for RoleId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for RuleId
Available on crate feature serenity
only.
impl Protocol for RuleId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for ScheduledEventId
Available on crate feature serenity
only.
impl Protocol for ScheduledEventId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for SkuId
Available on crate feature serenity
only.
impl Protocol for SkuId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for StageInstanceId
Available on crate feature serenity
only.
impl Protocol for StageInstanceId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for StickerId
Available on crate feature serenity
only.
impl Protocol for StickerId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for StickerPackBannerId
Available on crate feature serenity
only.
impl Protocol for StickerPackBannerId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for StickerPackId
Available on crate feature serenity
only.
impl Protocol for StickerPackId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for TargetId
Available on crate feature serenity
only.
impl Protocol for TargetId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for UserId
Available on crate feature serenity
only.
impl Protocol for UserId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for WebhookId
Available on crate feature serenity
only.
impl Protocol for WebhookId
serenity
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for Uuid
Available on crate feature uuid
only.
impl Protocol for Uuid
uuid
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroI8
A nonzero integer is represented like its value.
impl Protocol for NonZeroI8
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroI16
A nonzero integer is represented like its value.
impl Protocol for NonZeroI16
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroI32
A nonzero integer is represented like its value.
impl Protocol for NonZeroI32
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroI64
A nonzero integer is represented like its value.
impl Protocol for NonZeroI64
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroI128
A nonzero integer is represented like its value.
impl Protocol for NonZeroI128
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroU8
A nonzero integer is represented like its value.
impl Protocol for NonZeroU8
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroU16
A nonzero integer is represented like its value.
impl Protocol for NonZeroU16
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroU32
A nonzero integer is represented like its value.
impl Protocol for NonZeroU32
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroU64
A nonzero integer is represented like its value.
impl Protocol for NonZeroU64
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl Protocol for NonZeroU128
A nonzero integer is represented like its value.
impl Protocol for NonZeroU128
A nonzero integer is represented like its value.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<'cow, B: ToOwned + Sync + ?Sized> Protocol for Cow<'cow, B>
A cow is represented like its owned variant.
impl<'cow, B: ToOwned + Sync + ?Sized> Protocol for Cow<'cow, B>
A cow is represented like its owned variant.
Note that due to a restriction in the type system, writing a borrowed cow requires cloning it.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync> Protocol for (A,)
impl<A: Protocol + Send + Sync> Protocol for (A,)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync> Protocol for (A, B)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync> Protocol for (A, B)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync> Protocol for (A, B, C)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync> Protocol for (A, B, C)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync> Protocol for (A, B, C, D)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync> Protocol for (A, B, C, D)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync> Protocol for (A, B, C, D, E)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync> Protocol for (A, B, C, D, E)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync, K: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J, K)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync, K: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J, K)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync, K: Protocol + Send + Sync, L: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J, K, L)
impl<A: Protocol + Send + Sync, B: Protocol + Send + Sync, C: Protocol + Send + Sync, D: Protocol + Send + Sync, E: Protocol + Send + Sync, F: Protocol + Send + Sync, G: Protocol + Send + Sync, H: Protocol + Send + Sync, I: Protocol + Send + Sync, J: Protocol + Send + Sync, K: Protocol + Send + Sync, L: Protocol + Send + Sync> Protocol for (A, B, C, D, E, F, G, H, I, J, K, L)
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<C> Protocol for Money<C>
Available on crate feature doubloon
only.
impl<C> Protocol for Money<C>
doubloon
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<F, C> Protocol for NoisyFloat<F, C>
Available on crate feature noisy_float
only.
impl<F, C> Protocol for NoisyFloat<F, C>
noisy_float
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Idx> Protocol for Range<Idx>
impl<Idx> Protocol for Range<Idx>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Idx> Protocol for RangeFrom<Idx>
impl<Idx> Protocol for RangeFrom<Idx>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Idx> Protocol for RangeTo<Idx>
impl<Idx> Protocol for RangeTo<Idx>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Idx> Protocol for RangeToInclusive<Idx>
impl<Idx> Protocol for RangeToInclusive<Idx>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Idx: Protocol + Send + Sync> Protocol for RangeInclusive<Idx>
impl<Idx: Protocol + Send + Sync> Protocol for RangeInclusive<Idx>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<K: Protocol + Eq + Hash + Send + Sync, V: Protocol + Send + Sync> Protocol for HashMap<K, V>
A map is prefixed with the length as a u64
.
impl<K: Protocol + Eq + Hash + Send + Sync, V: Protocol + Send + Sync> Protocol for HashMap<K, V>
A map is prefixed with the length as a u64
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<K: Protocol + Ord + Send + Sync + 'static, V: Protocol + Send + Sync + 'static> Protocol for BTreeMap<K, V>
A map is prefixed with the length as a u64
.
impl<K: Protocol + Ord + Send + Sync + 'static, V: Protocol + Send + Sync + 'static> Protocol for BTreeMap<K, V>
A map is prefixed with the length as a u64
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T> Protocol for Option<T>
impl<T> Protocol for Option<T>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T> Protocol for PhantomData<T>where
T: Sync,
impl<T> Protocol for PhantomData<T>where
T: Sync,
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T, E> Protocol for Result<T, E>
impl<T, E> Protocol for Result<T, E>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: EnumSetType + EnumSetTypeWithRepr> Protocol for EnumSet<T>
Available on crate feature enumset
only.The type will be read via from_repr_truncated
, ignoring invalid variants.
impl<T: EnumSetType + EnumSetTypeWithRepr> Protocol for EnumSet<T>
enumset
only.The type will be read via from_repr_truncated
, ignoring invalid variants.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol + Eq + Hash + Send + Sync> Protocol for HashSet<T>
A set is prefixed with the length as a u64
.
impl<T: Protocol + Eq + Hash + Send + Sync> Protocol for HashSet<T>
A set is prefixed with the length as a u64
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol + Ord + Send + Sync + 'static> Protocol for BTreeSet<T>
A set is prefixed with the length as a u64
.
impl<T: Protocol + Ord + Send + Sync + 'static> Protocol for BTreeSet<T>
A set is prefixed with the length as a u64
.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol + Send + Sync + 'static, U: Protocol + Send + Sync + 'static> Protocol for Either<T, U>
Available on crate feature either
only.
impl<T: Protocol + Send + Sync + 'static, U: Protocol + Send + Sync + 'static> Protocol for Either<T, U>
either
only.fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol + Send + Sync> Protocol for Vec<T>
A vector is prefixed with the length as a u64
.
impl<T: Protocol + Send + Sync> Protocol for Vec<T>
A vector is prefixed with the length as a u64
.
Note that due to Rust’s lack of specialization, this implementation is inefficient for Vec<u8>
.
Prefer Bytes
if possible.
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol + Send + Sync, const N: usize> Protocol for [T; N]
impl<T: Protocol + Send + Sync, const N: usize> Protocol for [T; N]
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<T: Protocol> Protocol for Box<T>
impl<T: Protocol> Protocol for Box<T>
fn read<'a, R: AsyncRead + Unpin + Send + 'a>( stream: &'a mut R, ) -> Pin<Box<dyn Future<Output = Result<Self, ReadError>> + Send + 'a>>
fn write<'a, W: AsyncWrite + Unpin + Send + 'a>( &'a self, sink: &'a mut W, ) -> Pin<Box<dyn Future<Output = Result<(), WriteError>> + Send + 'a>>
fn read_sync(stream: &mut impl Read) -> Result<Self, ReadError>
fn write_sync(&self, sink: &mut impl Write) -> Result<(), WriteError>
Source§impl<Tz> Protocol for DateTime<Tz>
Available on crate feature chrono
only.
impl<Tz> Protocol for DateTime<Tz>
chrono
only.