pub trait StructMeta:
Copy
+ Clone
+ Debug {
type Struct<'a>: Copy + Clone + Debug;
const FIELDS: StructFields;
const FIELD_COUNT: usize = _;
const IS_FIXED_SIZE: bool = _;
const FIXED_SIZE: Option<usize> = _;
const LENGTH_FIELD_INDEX: Option<usize> = _;
const HAS_LENGTH_FIELD: bool = _;
// Required methods
fn new(buf: &[u8]) -> Result<Self::Struct<'_>, ParseError>;
fn to_vec(&self) -> Vec<u8> ⓘ;
}
Expand description
A trait for structs that describes their fields, containing some associated
constants. Note that only FIELDS
is provided. The remainder of the
associated constants are computed from FIELDS
.
Required Associated Constants§
const FIELDS: StructFields
Provided Associated Constants§
const FIELD_COUNT: usize = _
const IS_FIXED_SIZE: bool = _
const FIXED_SIZE: Option<usize> = _
const LENGTH_FIELD_INDEX: Option<usize> = _
const HAS_LENGTH_FIELD: bool = _
Required Associated Types§
Required Methods§
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.
Implementors§
Source§impl<'a> StructMeta for Annotation<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Annotation<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = Annotation<'__struct>
Source§impl<'a> StructMeta for Authentication<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Authentication<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = Authentication<'__struct>
Source§impl<'a> StructMeta for AuthenticationOk<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationOk<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationOk<'__struct>
Source§impl<'a> StructMeta for AuthenticationRequiredSASLMessage<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationRequiredSASLMessage<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationRequiredSASLMessage<'__struct>
Source§impl<'a> StructMeta for AuthenticationSASLContinue<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationSASLContinue<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationSASLContinue<'__struct>
Source§impl<'a> StructMeta for AuthenticationSASLFinal<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationSASLFinal<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationSASLFinal<'__struct>
Source§impl<'a> StructMeta for AuthenticationSASLInitialResponse<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationSASLInitialResponse<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationSASLInitialResponse<'__struct>
Source§impl<'a> StructMeta for AuthenticationSASLResponse<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for AuthenticationSASLResponse<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = AuthenticationSASLResponse<'__struct>
Source§impl<'a> StructMeta for ClientHandshake<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ClientHandshake<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ClientHandshake<'__struct>
Source§impl<'a> StructMeta for CommandComplete<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for CommandComplete<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = CommandComplete<'__struct>
Source§impl<'a> StructMeta for CommandDataDescription<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for CommandDataDescription<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = CommandDataDescription<'__struct>
Source§impl<'a> StructMeta for ConnectionParam<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ConnectionParam<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ConnectionParam<'__struct>
Source§impl<'a> StructMeta for Data<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Data<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for DataElement<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DataElement<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = DataElement<'__struct>
Source§impl<'a> StructMeta for Dump2<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Dump2<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for Dump3<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Dump3<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for Dump<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Dump<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for DumpBlock<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DumpBlock<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for DumpHeader<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DumpHeader<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = DumpHeader<'__struct>
Source§impl<'a> StructMeta for DumpObjectDesc<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DumpObjectDesc<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = DumpObjectDesc<'__struct>
Source§impl<'a> StructMeta for DumpTypeInfo<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for DumpTypeInfo<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = DumpTypeInfo<'__struct>
Source§impl<'a> StructMeta for ErrorResponse<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ErrorResponse<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ErrorResponse<'__struct>
Source§impl<'a> StructMeta for Execute2<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Execute2<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for Execute<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Execute<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for KeyValue<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for KeyValue<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for LogMessage<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for LogMessage<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = LogMessage<'__struct>
Source§impl<'a> StructMeta for Message<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Message<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for ParameterStatus<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ParameterStatus<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ParameterStatus<'__struct>
Source§impl<'a> StructMeta for Parse2<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Parse2<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for Parse<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Parse<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for ProtocolExtension<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ProtocolExtension<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ProtocolExtension<'__struct>
Source§impl<'a> StructMeta for ReadyForCommand<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ReadyForCommand<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ReadyForCommand<'__struct>
Source§impl<'a> StructMeta for Restore<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Restore<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
Source§impl<'a> StructMeta for RestoreBlock<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for RestoreBlock<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = RestoreBlock<'__struct>
Source§impl<'a> StructMeta for RestoreEof<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for RestoreEof<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = RestoreEof<'__struct>
Source§impl<'a> StructMeta for RestoreReady<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for RestoreReady<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = RestoreReady<'__struct>
Source§impl<'a> StructMeta for ServerHandshake<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ServerHandshake<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ServerHandshake<'__struct>
Source§impl<'a> StructMeta for ServerKeyData<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for ServerKeyData<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = ServerKeyData<'__struct>
Source§impl<'a> StructMeta for StateDataDescription<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for StateDataDescription<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.
const FIELDS: StructFields
type Struct<'__struct> = StateDataDescription<'__struct>
Source§impl<'a> StructMeta for Sync<'a>
Implements a trait containing the fields of the struct, allowing
us to compute some useful things.
impl<'a> StructMeta for Sync<'a>
Implements a trait containing the fields of the struct, allowing us to compute some useful things.