pub struct SystemIdSource;Expand description
Stateless production source for client-owned UUIDv7 values.
Every method samples the system clock once, performs one ten-byte entropy fill, and retains no ordering or uniqueness state.
Implementations§
Source§impl SystemIdSource
impl SystemIdSource
Sourcepub fn request_id(self) -> Result<RequestId, IdentifierGenerationError>
pub fn request_id(self) -> Result<RequestId, IdentifierGenerationError>
Generates one fresh outer transport request identifier.
Sourcepub fn capability_id(self) -> Result<CapabilityId, IdentifierGenerationError>
pub fn capability_id(self) -> Result<CapabilityId, IdentifierGenerationError>
Generates one caller-selected capability identifier.
Sourcepub fn agent_session_id(
self,
) -> Result<AgentSessionId, IdentifierGenerationError>
pub fn agent_session_id( self, ) -> Result<AgentSessionId, IdentifierGenerationError>
Generates one optional caller agent-session identifier.
Sourcepub fn offline_maintenance_operation_id(
self,
) -> Result<OfflineMaintenanceOperationId, IdentifierGenerationError>
pub fn offline_maintenance_operation_id( self, ) -> Result<OfflineMaintenanceOperationId, IdentifierGenerationError>
Generates one caller-stable offline-maintenance operation identifier.
Sourcepub fn contract_migration_operation_id(
self,
) -> Result<ContractMigrationOperationId, IdentifierGenerationError>
pub fn contract_migration_operation_id( self, ) -> Result<ContractMigrationOperationId, IdentifierGenerationError>
Generates one caller-stable contract-migration operation identifier.
Sourcepub fn application_export_operation_id(
self,
) -> Result<ApplicationExportOperationId, IdentifierGenerationError>
pub fn application_export_operation_id( self, ) -> Result<ApplicationExportOperationId, IdentifierGenerationError>
Generates one caller-stable symbolic-export operation identifier.
Sourcepub fn application_installation_campaign_id(
self,
) -> Result<ApplicationInstallationCampaignId, IdentifierGenerationError>
pub fn application_installation_campaign_id( self, ) -> Result<ApplicationInstallationCampaignId, IdentifierGenerationError>
Generates one caller-stable application installation or reimport campaign identifier.
Trait Implementations§
Source§impl Clone for SystemIdSource
impl Clone for SystemIdSource
Source§fn clone(&self) -> SystemIdSource
fn clone(&self) -> SystemIdSource
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 moreimpl Copy for SystemIdSource
Source§impl Debug for SystemIdSource
impl Debug for SystemIdSource
Source§impl Default for SystemIdSource
impl Default for SystemIdSource
Source§fn default() -> SystemIdSource
fn default() -> SystemIdSource
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemIdSource
impl RefUnwindSafe for SystemIdSource
impl Send for SystemIdSource
impl Sync for SystemIdSource
impl Unpin for SystemIdSource
impl UnsafeUnpin for SystemIdSource
impl UnwindSafe for SystemIdSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].