pub trait ProtocolEnvelope<'env>:
Debug
+ MaybeSend
+ MaybeSync {
type Nested<'a>
where Self: 'a;
// Required methods
fn accept<V: EnvelopeVisitor<'env>>(
&self,
visitor: &mut V,
) -> Result<(), EnvelopeError>
where EnvelopeError: From<<V as EnvelopeVisitor<'env>>::Error>;
fn get_nested(&self) -> Result<Self::Nested<'_>, ConversionError>;
}Expand description
An low-level envelope from the network gRPC interface
Required Associated Types§
Required Methods§
fn accept<V: EnvelopeVisitor<'env>>( &self, visitor: &mut V, ) -> Result<(), EnvelopeError>
fn get_nested(&self) -> Result<Self::Nested<'_>, ConversionError>
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.