#[non_exhaustive]#[repr(i32)]pub enum ExtensionPoint {
_0 = 0,
}Expand description
An ExtensionPoint is a struct that can be embedded as the first element of other XDR structs in order to allow future upgradeability without breaking serialization of pre-existing objects. This serializes as a 32-bit integer. In its current state, the only valid byte value is 0, but a struct that embeds this can later replace itself with a union (with the prior struct as variant 0) without breaking backwards compatibility.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
_0 = 0
Implementations§
Source§impl ExtensionPoint
impl ExtensionPoint
pub const fn const_write_cxs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
pub const fn const_write_txs<const __N: usize>(&self, w: &mut ConstWriter<__N>)
Sourcepub const fn const_cxs_size(&self) -> usize
pub const fn const_cxs_size(&self) -> usize
Returns the CXS encoded size of this value in bytes.
Sourcepub const fn const_txs_size(&self) -> usize
pub const fn const_txs_size(&self) -> usize
Returns the TXS encoded size of this value in bytes.
Trait Implementations§
Source§impl Clone for ExtensionPoint
impl Clone for ExtensionPoint
Source§fn clone(&self) -> ExtensionPoint
fn clone(&self) -> ExtensionPoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ConstMaxSize for ExtensionPoint
impl ConstMaxSize for ExtensionPoint
Source§impl ConstMaxSize for ExtensionPoint
impl ConstMaxSize for ExtensionPoint
Source§impl Debug for ExtensionPoint
impl Debug for ExtensionPoint
impl EncodesAs<ExtensionPoint> for ExtensionPoint
impl Eq for ExtensionPoint
Source§impl Hash for ExtensionPoint
impl Hash for ExtensionPoint
Source§impl JsonSchema for ExtensionPoint
impl JsonSchema for ExtensionPoint
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for ExtensionPoint
impl Ord for ExtensionPoint
Source§fn cmp(&self, other: &ExtensionPoint) -> Ordering
fn cmp(&self, other: &ExtensionPoint) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ExtensionPoint
impl PartialEq for ExtensionPoint
Source§impl PartialOrd for ExtensionPoint
impl PartialOrd for ExtensionPoint
Source§impl<'_r> ReadXDR<'_r> for ExtensionPoint
impl<'_r> ReadXDR<'_r> for ExtensionPoint
impl StructuralPartialEq for ExtensionPoint
Source§impl WriteXDR for ExtensionPoint
impl WriteXDR for ExtensionPoint
Source§fn write_xdr<F, W>(&self, __write_xdr_writer: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
fn write_xdr<F, W>(&self, __write_xdr_writer: &mut W) -> Result<(), WriteError>where
W: Writer<F>,
Writes this value as XDR data to the writer. Read more
Source§unsafe fn write_xdr_unchecked<F, W>(&self, __write_xdr_writer: &mut W)where
W: WriterUnchecked<F>,
unsafe fn write_xdr_unchecked<F, W>(&self, __write_xdr_writer: &mut W)where
W: WriterUnchecked<F>,
Writes this value as XDR data to the writer, without runtime checks. Read more
Auto Trait Implementations§
impl Freeze for ExtensionPoint
impl RefUnwindSafe for ExtensionPoint
impl Send for ExtensionPoint
impl Sync for ExtensionPoint
impl Unpin for ExtensionPoint
impl UnsafeUnpin for ExtensionPoint
impl UnwindSafe for ExtensionPoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more