pub trait Transmittable {
type Allowed: Eq + PartialEq + Debug;
// Required method
fn to_allowed(&self) -> Self::Allowed;
}Expand description
A helper trait for ClientTransmitter.
Required Associated Types§
Required Methods§
Sourcefn to_allowed(&self) -> Self::Allowed
fn to_allowed(&self) -> Self::Allowed
The conversion from the ClientTransmitter’s type to Allowed.
The benefit of this style of trait, rather than relying on a bound on
Allowed, are:
- Not requiring a clone
- The flexibility for facile implementations that do not plan to make
use of the
allowedfeature. Those types can simply implement this trait forbool, and returntrue. However, it might not be semantically appropriate to exposeFrom<&Self> for bool.
Implementations on Foreign Types§
Source§impl Transmittable for ()
impl Transmittable for ()
Source§impl Transmittable for SystemVars
impl Transmittable for SystemVars
Implementors§
Source§impl Transmittable for ExecuteResponse
This implementation is meant to ensure that we maintain updated information
about which types of ExecuteResponses are permitted to be sent, which will
be a function of which plan we’re executing.
impl Transmittable for ExecuteResponse
This implementation is meant to ensure that we maintain updated information
about which types of ExecuteResponses are permitted to be sent, which will
be a function of which plan we’re executing.