Skip to main content

SqliteStorage

Struct SqliteStorage 

Source
pub struct SqliteStorage { /* private fields */ }

Implementations§

Source§

impl SqliteStorage

Source

pub async fn new(database_url: &str) -> Result<Self>

Source

pub async fn in_memory() -> Result<Self>

Trait Implementations§

Source§

impl CustomerStore for SqliteStorage

Source§

fn create_customer<'life0, 'life1, 'async_trait>( &'life0 self, c: &'life1 Customer, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_customer<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Customer>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn find_customer_by_email<'life0, 'life1, 'async_trait>( &'life0 self, product_id: Uuid, email: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Customer>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn update_customer<'life0, 'life1, 'async_trait>( &'life0 self, c: &'life1 Customer, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl EnrollmentStore for SqliteStorage

Source§

fn count_transferable_seat_bindings<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn set_seat_binding_transfer_pending<'life0, 'async_trait>( &'life0 self, id: Uuid, pending_at: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_enrollment_session<'life0, 'life1, 'async_trait>( &'life0 self, s: &'life1 EnrollmentSession, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_enrollment_session<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<EnrollmentSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_session_by_payment_intent<'life0, 'life1, 'async_trait>( &'life0 self, intent_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<EnrollmentSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn update_enrollment_session<'life0, 'async_trait>( &'life0 self, id: Uuid, expected_updated_at: i64, update: EnrollmentSessionUpdate, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_grant_ready_sessions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnrollmentSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl LicenseStore for SqliteStorage

Source§

fn create_license<'life0, 'life1, 'async_trait>( &'life0 self, l: &'life1 License, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_license<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<License>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_licenses_for_customer<'life0, 'async_trait>( &'life0 self, customer_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<License>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_license_status<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, status: LicenseStatus, revoked_at: Option<i64>, revocation_reason: Option<&'life1 str>, superseded_by: Option<Uuid>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn update_license_email_sent<'life0, 'async_trait>( &'life0 self, id: Uuid, sent_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl PaymentStore for SqliteStorage

Source§

fn create_payment_transaction<'life0, 'life1, 'async_trait>( &'life0 self, t: &'life1 PaymentTransaction, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_payment_transaction<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<PaymentTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_payment_transaction_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<PaymentTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_payment_status<'life0, 'async_trait>( &'life0 self, id: Uuid, status: PaymentStatus, confirmed_at: Option<i64>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_transfer_request<'life0, 'life1, 'async_trait>( &'life0 self, r: &'life1 TransferRequest, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_transfer_request<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<TransferRequest>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_transfer_requests_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<TransferRequest>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn resolve_transfer_request<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, status: TransferStatus, vendor_note: Option<&'life1 str>, resolved_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl SeatStore for SqliteStorage

Source§

fn create_seat_binding<'life0, 'life1, 'async_trait>( &'life0 self, b: &'life1 FingerprintSeatBinding, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_seat_binding<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<FingerprintSeatBinding>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn find_seat_binding_by_commitment<'life0, 'life1, 'async_trait>( &'life0 self, license_id: Uuid, commitment: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Option<FingerprintSeatBinding>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn list_seat_bindings<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<FingerprintSeatBinding>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn count_active_seat_bindings<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<u32>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn revoke_seat_binding<'life0, 'async_trait>( &'life0 self, id: Uuid, revoked_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_seat_binding_verified<'life0, 'async_trait>( &'life0 self, id: Uuid, verified_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_issuance_secret<'life0, 'life1, 'async_trait>( &'life0 self, s: &'life1 IssuanceSecret, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_issuance_secret<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<IssuanceSecret>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_issuance_secret<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_session<'life0, 'life1, 'async_trait>( &'life0 self, s: &'life1 ActiveSession, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_session<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ActiveSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_active_session_for_binding<'life0, 'async_trait>( &'life0 self, binding_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ActiveSession>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_session_heartbeat<'life0, 'async_trait>( &'life0 self, id: Uuid, heartbeat_at: i64, seq_no: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_session_status<'life0, 'async_trait>( &'life0 self, id: Uuid, status: SessionStatus, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn expire_sessions_before<'life0, 'async_trait>( &'life0 self, expires_at: i64, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl SecurityStore for SqliteStorage

Source§

fn create_quarantine_case<'life0, 'life1, 'async_trait>( &'life0 self, c: &'life1 QuarantineCase, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_quarantine_case<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<QuarantineCase>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_quarantine_case_by_case_id<'life0, 'async_trait>( &'life0 self, case_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<QuarantineCase>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn resolve_quarantine_case<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: Uuid, status: QuarantineStatus, resolution: Option<&'life1 str>, resolved_at: i64, vendor_note: Option<&'life2 str>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn create_security_event<'life0, 'life1, 'async_trait>( &'life0 self, e: &'life1 SecurityEvent, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_security_events_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<SecurityEvent>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn mark_security_event_reviewed<'life0, 'life1, 'async_trait>( &'life0 self, id: i64, reviewed_by: &'life1 str, reviewed_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn create_revocation_record<'life0, 'life1, 'async_trait>( &'life0 self, r: &'life1 RevocationRecord, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_revocation_record<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<RevocationRecord>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_email_log_entry<'life0, 'life1, 'async_trait>( &'life0 self, e: &'life1 EmailLogEntry, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn list_email_log_for_license<'life0, 'async_trait>( &'life0 self, license_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<EmailLogEntry>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl VendorStore for SqliteStorage

Source§

fn get_vendor_config<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<VendorConfig>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn upsert_vendor_config<'life0, 'life1, 'async_trait>( &'life0 self, config: &'life1 VendorConfig, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn rotate_vendor_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, new_public_key: &'life1 [u8], new_fingerprint: &'life2 str, rotated_from: &'life3 [u8], rotated_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source§

fn create_product<'life0, 'life1, 'async_trait>( &'life0 self, p: &'life1 Product, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_product<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<Product>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_products<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Product>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_product<'life0, 'life1, 'async_trait>( &'life0 self, p: &'life1 Product, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn upsert_term_declaration<'life0, 'life1, 'async_trait>( &'life0 self, d: &'life1 ProductTermDeclaration, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_term_declaration<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ProductTermDeclaration>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_terms_document<'life0, 'life1, 'async_trait>( &'life0 self, d: &'life1 ProductTermsDocument, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_terms_document<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ProductTermsDocument>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn get_active_terms_document<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<ProductTermsDocument>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn list_terms_documents<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProductTermsDocument>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn update_terms_document_validation<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, status: TermsValidationStatus, findings: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn acknowledge_terms_findings<'life0, 'life1, 'async_trait>( &'life0 self, id: Uuid, acknowledged_at: i64, findings: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn activate_terms_document<'life0, 'async_trait>( &'life0 self, id: Uuid, activated_at: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn replace_customer_fields<'life0, 'life1, 'async_trait>( &'life0 self, product_id: Uuid, fields: &'life1 [ProductCustomerField], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_customer_fields<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<ProductCustomerField>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn create_upgrade_policy<'life0, 'life1, 'async_trait>( &'life0 self, p: &'life1 UpgradePolicyRow, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn get_upgrade_policy<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Option<UpgradePolicyRow>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn find_upgrade_policy<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, product_id: Uuid, from_version: &'life1 str, to_version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<UpgradePolicyRow>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn list_upgrade_policies<'life0, 'async_trait>( &'life0 self, product_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<Vec<UpgradePolicyRow>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn delete_upgrade_policy<'life0, 'async_trait>( &'life0 self, id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Storage for T

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more