FutureExtension

Struct FutureExtension 

Source
pub struct FutureExtension<P: FieldParameters> { /* private fields */ }
Expand description

Placeholder implementation for future cryptographic extensions.

This struct serves as a stub for cryptographic extensions that have not yet been implemented. It provides the basic structure and interface that future extensions will follow, allowing the API to be designed ahead of full implementation.

§Type Parameters

  • P: The field parameters defining the mathematical field for operations

§Note

This is a placeholder that returns NotImplemented errors for all operations. Real extensions should implement meaningful cryptographic algorithms.

Implementations§

Source§

impl<P: FieldParameters> FutureExtension<P>

Source

pub fn new() -> Self

Creates a new placeholder cryptographic extension.

This constructor initializes a stub extension that can be used as a placeholder until the actual cryptographic implementation is ready.

§Returns

A new FutureExtension instance configured for the specified field parameters

Trait Implementations§

Source§

impl<P: Clone + FieldParameters> Clone for FutureExtension<P>

Source§

fn clone(&self) -> FutureExtension<P>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<P: FieldParameters> CryptoExtension for FutureExtension<P>

Available on crate feature alloc only.
Source§

fn custom_operation(&self, _input: &[u8]) -> Result<Vec<u8>, MathError>

Placeholder implementation that always returns NotImplemented.

This method serves as a stub for future cryptographic operations. Real implementations should perform meaningful cryptographic computations on the input data using field arithmetic.

§Arguments
  • _input - Ignored input data (placeholder parameter)
§Returns

Always returns Err(MathError::NotImplemented) as this is a placeholder

Source§

fn name(&self) -> &'static str

Returns the name identifier for this extension.

§Returns

The static string “FutureExtension” identifying this placeholder implementation

Source§

type Params = P

The field parameters type for this extension. Read more
Source§

fn is_available(&self) -> bool

Checks if this cryptographic extension is available and functional. Read more
Source§

impl<P: Debug + FieldParameters> Debug for FutureExtension<P>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P: FieldParameters> Default for FutureExtension<P>

Available on crate feature alloc only.
Source§

fn default() -> Self

Creates a default placeholder cryptographic extension.

This implementation allows FutureExtension to be used with Default::default(), providing a convenient way to create placeholder extensions.

§Returns

A new FutureExtension instance equivalent to calling FutureExtension::new()

Auto Trait Implementations§

§

impl<P> Freeze for FutureExtension<P>

§

impl<P> RefUnwindSafe for FutureExtension<P>
where P: RefUnwindSafe,

§

impl<P> Send for FutureExtension<P>
where P: Send,

§

impl<P> Sync for FutureExtension<P>
where P: Sync,

§

impl<P> Unpin for FutureExtension<P>
where P: Unpin,

§

impl<P> UnwindSafe for FutureExtension<P>
where P: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.