pub trait Reply {
const TAG: TLVTag;
// Required methods
fn set<T>(self, value: T) -> Result<(), Error>
where T: ToTLV;
fn reset(&mut self);
fn writer(&mut self) -> impl TLVWrite + Send;
fn complete(self) -> Result<(), Error>;
// Provided method
fn tag(&self) -> &'static TLVTag { ... }
}Required Associated Constants§
Required Methods§
Sourcefn set<T>(self, value: T) -> Result<(), Error>where
T: ToTLV,
fn set<T>(self, value: T) -> Result<(), Error>where
T: ToTLV,
Set the TLV value of the reply and complete.
Sourcefn reset(&mut self)
fn reset(&mut self)
Remove everything written via the writer method since the last call to reset.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".