pub struct SqliteStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CustomerStore for SqliteStorage
impl CustomerStore for SqliteStorage
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,
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,
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,
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
impl EnrollmentStore for SqliteStorage
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,
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,
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,
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,
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,
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,
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
impl LicenseStore for SqliteStorage
fn create_consent_record<'life0, 'life1, 'async_trait>(
&'life0 self,
r: &'life1 ConsentRecord,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_consent_record<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<ConsentRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_consent_records_for_license<'life0, 'async_trait>(
&'life0 self,
license_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Vec<ConsentRecord>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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,
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,
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,
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,
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
impl PaymentStore for SqliteStorage
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,
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,
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,
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,
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,
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,
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,
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
impl SeatStore for SqliteStorage
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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
impl SecurityStore for SqliteStorage
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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
impl VendorStore for SqliteStorage
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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§
impl !RefUnwindSafe for SqliteStorage
impl !UnwindSafe for SqliteStorage
impl Freeze for SqliteStorage
impl Send for SqliteStorage
impl Sync for SqliteStorage
impl Unpin for SqliteStorage
impl UnsafeUnpin for SqliteStorage
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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