Struct libp2p_blake_streams::StreamSyncCodec [−][src]
pub struct StreamSyncCodec { /* fields omitted */ }
Trait Implementations
Returns the “default value” for a type. Read more
type Protocol = StreamSyncProtocol
type Protocol = StreamSyncProtocol
The type of protocol(s) or protocol versions being negotiated.
type Request = StreamSyncRequest
type Request = StreamSyncRequest
The type of inbound and outbound requests.
fn read_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T
) -> Pin<Box<dyn Future<Output = Result<Self::Request>> + Send + 'async_trait>> where
T: AsyncRead + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn read_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T
) -> Pin<Box<dyn Future<Output = Result<Self::Request>> + Send + 'async_trait>> where
T: AsyncRead + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Reads a request from the given I/O stream according to the negotiated protocol. Read more
fn read_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T
) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>> where
T: AsyncRead + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn read_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T
) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>> where
T: AsyncRead + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Reads a response from the given I/O stream according to the negotiated protocol. Read more
fn write_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T,
req: Self::Request
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: AsyncWrite + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn write_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T,
req: Self::Request
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: AsyncWrite + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Writes a request to the given I/O stream according to the negotiated protocol. Read more
fn write_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T,
res: Self::Response
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: AsyncWrite + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn write_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
__arg1: &'life1 Self::Protocol,
io: &'life2 mut T,
res: Self::Response
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
T: AsyncWrite + Send + Unpin,
T: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Writes a response to the given I/O stream according to the negotiated protocol. Read more
Auto Trait Implementations
impl RefUnwindSafe for StreamSyncCodec
impl Send for StreamSyncCodec
impl Sync for StreamSyncCodec
impl Unpin for StreamSyncCodec
impl UnwindSafe for StreamSyncCodec
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
pub fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V