pub trait RespondableInboundContext: InboundContext {
// Required methods
fn is_multicast(&self) -> bool;
fn is_fake(&self) -> bool;
fn respond<F>(&self, msg_gen: F) -> Result<(), Error>
where F: Fn(&mut dyn MessageWrite) -> Result<(), Error>;
}
Expand description
Represents the context for processing an inbound request that can be responded to.
Required Methods§
Sourcefn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
Indicates if the inbound request was a multicast request or not. Multicast requests have additional response timing requirements in order to avoid congestion.
Sourcefn is_fake(&self) -> bool
fn is_fake(&self) -> bool
Indicates if this inbound request is from a real inbound request or if it
is a fake request that is being generated internally to solicit a response.
Fake requests are only generated for the GET
method.
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.