pub struct PolicyClient { /* private fields */ }Expand description
Auto-generated client for the Policy service.
Implementations§
Source§impl PolicyClient
impl PolicyClient
Sourcepub const SERVICE_NAME: &'static str = "policy"
pub const SERVICE_NAME: &'static str = "policy"
Canonical service/destination domain used for cryptographic RPC binding.
Sourcepub fn from_provider(
provider: &dyn RpcClientProvider,
signing_key: SigningKey,
token: Option<String>,
) -> Result<Self>
pub fn from_provider( provider: &dyn RpcClientProvider, signing_key: SigningKey, token: Option<String>, ) -> Result<Self>
Construct this typed client through an application-supplied
hyprstream_rpc::RpcClientProvider. Resolver authority and
endpoint policy stay outside the portable contract crate.
pub fn with_delegated_bearer(self, token: impl Into<String>) -> Self
Sourcepub fn with_bearer(self, token: impl Into<String>) -> Self
pub fn with_bearer(self, token: impl Into<String>) -> Self
Set this client’s DIRECT bearer for every call.
Unlike Self::with_delegated_bearer, the token travels as the
envelope’s own JWT — the caller is asserting the token as ITS
verified credential, and the receiving service’s holder/cnf
binding applies against this client’s signing key. Used for
caller-authored credentials (e.g. the Model→Inference
iw+jwt internal work order); never for relaying a foreign
holder’s token.
Sourcepub fn request(&self) -> RequestBuilder<'_>
pub fn request(&self) -> RequestBuilder<'_>
Create a per-call request builder for custom authentication options.
The builder is Send+Sync and idempotent — it stores per-call auth context without mutating the shared client. Safe for use with connection pooling.
Sourcepub async fn call(&self, payload: Vec<u8>) -> Result<Vec<u8>>
pub async fn call(&self, payload: Vec<u8>) -> Result<Vec<u8>>
Send a raw request and return the raw response bytes.
Sourcepub async fn call_with_method(
&self,
method_discriminator: u16,
payload: Vec<u8>,
) -> Result<Vec<u8>>
pub async fn call_with_method( &self, method_discriminator: u16, payload: Vec<u8>, ) -> Result<Vec<u8>>
Send a generated request with its canonical schema method id.
Sourcepub async fn call_streaming(
&self,
payload: Vec<u8>,
ephemeral_pubkey: [u8; 32],
) -> Result<Vec<u8>>
pub async fn call_streaming( &self, payload: Vec<u8>, ephemeral_pubkey: [u8; 32], ) -> Result<Vec<u8>>
Send a streaming request with ephemeral DH pubkey.
Sourcepub async fn call_streaming_with_method(
&self,
method_discriminator: u16,
payload: Vec<u8>,
ephemeral_pubkey: [u8; 32],
) -> Result<Vec<u8>>
pub async fn call_streaming_with_method( &self, method_discriminator: u16, payload: Vec<u8>, ephemeral_pubkey: [u8; 32], ) -> Result<Vec<u8>>
Send a generated streaming request with its schema method id.
Sourcepub async fn check(&self, __request: &PolicyCheck) -> Result<bool>
pub async fn check(&self, __request: &PolicyCheck) -> Result<bool>
check (PolicyCheck variant)
Sourcepub async fn issue_token(&self, __request: &IssueToken) -> Result<TokenInfo>
pub async fn issue_token(&self, __request: &IssueToken) -> Result<TokenInfo>
issue_token (IssueToken variant)
Sourcepub async fn list_scopes(&self) -> Result<ScopeList>
pub async fn list_scopes(&self) -> Result<ScopeList>
List all supported authorization scopes discovered from service schemas
Scope: query
Sourcepub async fn get_policy(&self) -> Result<PolicyInfo>
pub async fn get_policy(&self) -> Result<PolicyInfo>
Get current policy rules and role assignments
Scope: query
Sourcepub async fn apply_template(&self, __request: &ApplyTemplate) -> Result<String>
pub async fn apply_template(&self, __request: &ApplyTemplate) -> Result<String>
Apply a built-in policy template
Scope: manage
Sourcepub async fn apply_draft(&self, __request: &ApplyDraft) -> Result<String>
pub async fn apply_draft(&self, __request: &ApplyDraft) -> Result<String>
Commit draft policy changes
Scope: manage
Sourcepub async fn rollback(&self, __request: &RollbackPolicy) -> Result<String>
pub async fn rollback(&self, __request: &RollbackPolicy) -> Result<String>
Rollback to a previous policy version
Scope: manage
Sourcepub async fn get_history(&self, __request: &GetHistory) -> Result<PolicyHistory>
pub async fn get_history(&self, __request: &GetHistory) -> Result<PolicyHistory>
Get policy commit history
Scope: query
Sourcepub async fn get_diff(&self, __request: &GetDiff) -> Result<String>
pub async fn get_diff(&self, __request: &GetDiff) -> Result<String>
Get diff of uncommitted policy changes
Scope: query
Sourcepub async fn get_draft_status(&self) -> Result<DraftStatus>
pub async fn get_draft_status(&self) -> Result<DraftStatus>
Check if there are uncommitted policy changes
Scope: query
Sourcepub async fn add_grouping(&self, __request: &AddGrouping) -> Result<String>
pub async fn add_grouping(&self, __request: &AddGrouping) -> Result<String>
Assign a role to a user
Scope: manage
Sourcepub async fn remove_grouping(
&self,
__request: &RemoveGrouping,
) -> Result<String>
pub async fn remove_grouping( &self, __request: &RemoveGrouping, ) -> Result<String>
Remove a role from a user
Scope: manage
Sourcepub async fn set_branch_visibility(
&self,
__request: &SetBranchVisibility,
) -> Result<String>
pub async fn set_branch_visibility( &self, __request: &SetBranchVisibility, ) -> Result<String>
Set a model branch as public or private
Scope: manage
Sourcepub async fn register_event_prefix(
&self,
__request: &RegisterEventPrefix,
) -> Result<()>
pub async fn register_event_prefix( &self, __request: &RegisterEventPrefix, ) -> Result<()>
Register an event prefix for publishing
Scope: manage
Sourcepub async fn subscribe_event_prefix(
&self,
__request: &SubscribeEventPrefix,
) -> Result<EventPrefixAccess>
pub async fn subscribe_event_prefix( &self, __request: &SubscribeEventPrefix, ) -> Result<EventPrefixAccess>
Subscribe to an event prefix
Scope: manage
Sourcepub async fn get_pending_subscribers(
&self,
__request: &GetPendingSubscribers,
) -> Result<PendingSubscribers>
pub async fn get_pending_subscribers( &self, __request: &GetPendingSubscribers, ) -> Result<PendingSubscribers>
Get pending subscribers for a prefix
Scope: query
Sourcepub async fn deposit_wrapped_keys(
&self,
__request: &DepositWrappedKeys,
) -> Result<()>
pub async fn deposit_wrapped_keys( &self, __request: &DepositWrappedKeys, ) -> Result<()>
Deposit wrapped keys for subscribers
Scope: manage
Sourcepub async fn resolve_service_key(
&self,
__request: &ResolveServiceKey,
) -> Result<ServiceKeyResponse>
pub async fn resolve_service_key( &self, __request: &ResolveServiceKey, ) -> Result<ServiceKeyResponse>
Resolve a service name to its Ed25519 verifying key
Scope: query
Sourcepub async fn register_service_key(
&self,
__request: &RegisterServiceKey,
) -> Result<()>
pub async fn register_service_key( &self, __request: &RegisterServiceKey, ) -> Result<()>
Register a service verifying key with the CA
Sourcepub async fn refresh_service_token(
&self,
__request: &RefreshServiceTokenRequest,
) -> Result<TokenInfo>
pub async fn refresh_service_token( &self, __request: &RefreshServiceTokenRequest, ) -> Result<TokenInfo>
Renew the caller’s service JWT; identity from signed envelope
Scope: manage
Sourcepub async fn exchange_wit(&self, __request: &ExchangeWit) -> Result<TokenInfo>
pub async fn exchange_wit(&self, __request: &ExchangeWit) -> Result<TokenInfo>
Exchange the caller’s envelope WIT for an OAuth at+jwt; identity from signed envelope
Scope: manage
Sourcepub async fn check_batch(
&self,
__request: &PolicyCheckBatch,
) -> Result<PolicyCheckBatchResult>
pub async fn check_batch( &self, __request: &PolicyCheckBatch, ) -> Result<PolicyCheckBatchResult>
check_batch (PolicyCheckBatch variant)
Sourcepub async fn revoke_credential(
&self,
__request: &RevokeCredential,
) -> Result<()>
pub async fn revoke_credential( &self, __request: &RevokeCredential, ) -> Result<()>
revoke_credential (RevokeCredential variant)
Sourcepub async fn check_credential_revocation(
&self,
__request: &CheckCredentialRevocation,
) -> Result<bool>
pub async fn check_credential_revocation( &self, __request: &CheckCredentialRevocation, ) -> Result<bool>
check_credential_revocation (CheckCredentialRevocation variant)
Sourcepub async fn register_session(&self, __request: &RegisterSession) -> Result<()>
pub async fn register_session(&self, __request: &RegisterSession) -> Result<()>
register_session (RegisterSession variant)
Sourcepub async fn revoke_session(&self, __request: &RevokeSession) -> Result<()>
pub async fn revoke_session(&self, __request: &RevokeSession) -> Result<()>
revoke_session (RevokeSession variant)
Sourcepub async fn check_session(&self, __request: &CheckSession) -> Result<bool>
pub async fn check_session(&self, __request: &CheckSession) -> Result<bool>
check_session (CheckSession variant)
Sourcepub async fn exchange_delegated(
&self,
__request: &ExchangeDelegated,
) -> Result<TokenInfo>
pub async fn exchange_delegated( &self, __request: &ExchangeDelegated, ) -> Result<TokenInfo>
exchange_delegated (ExchangeDelegated variant)
Sourcepub async fn check_mediated(
&self,
__request: &MediatedPolicyCheck,
) -> Result<bool>
pub async fn check_mediated( &self, __request: &MediatedPolicyCheck, ) -> Result<bool>
check_mediated (MediatedPolicyCheck variant)
Sourcepub async fn resolve_session_primary(
&self,
__request: &ResolveSessionPrimary,
) -> Result<SessionPrimary>
pub async fn resolve_session_primary( &self, __request: &ResolveSessionPrimary, ) -> Result<SessionPrimary>
resolve_session_primary (ResolveSessionPrimary variant)
Sourcepub async fn admit_federate_request(
&self,
__request: &AdmitFederateRequest,
) -> Result<bool>
pub async fn admit_federate_request( &self, __request: &AdmitFederateRequest, ) -> Result<bool>
admit_federate_request (AdmitFederateRequest variant)
Sourcepub async fn prepare_federate_session(
&self,
__request: &PrepareFederateSession,
) -> Result<PreparedFederateSession>
pub async fn prepare_federate_session( &self, __request: &PrepareFederateSession, ) -> Result<PreparedFederateSession>
prepare_federate_session (PrepareFederateSession variant)
Sourcepub async fn commit_federate_session(
&self,
__request: &CommitFederateSession,
) -> Result<FederateCommittedSession>
pub async fn commit_federate_session( &self, __request: &CommitFederateSession, ) -> Result<FederateCommittedSession>
commit_federate_session (CommitFederateSession variant)
Sourcepub fn parse_response(bytes: &[u8]) -> Result<PolicyResponseVariant>
pub fn parse_response(bytes: &[u8]) -> Result<PolicyResponseVariant>
Parse a response from raw bytes.
Source§impl PolicyClient
impl PolicyClient
Sourcepub fn for_local_bootstrap(
signing_key: SigningKey,
destination: VerifyingKey,
token: Option<String>,
) -> Result<Self>
pub fn for_local_bootstrap( signing_key: SigningKey, destination: VerifyingKey, token: Option<String>, ) -> Result<Self>
Construct a client for a co-located service discovered through the explicitly registered local endpoint.
Sourcepub fn for_local_endpoint_bootstrap(
endpoint: &str,
signing_key: SigningKey,
destination: VerifyingKey,
token: Option<String>,
) -> Result<Self>
pub fn for_local_endpoint_bootstrap( endpoint: &str, signing_key: SigningKey, destination: VerifyingKey, token: Option<String>, ) -> Result<Self>
Construct a client from an explicit local endpoint string.
Sourcepub fn for_local_transport_bootstrap(
transport: &TransportConfig,
signing_key: SigningKey,
destination: VerifyingKey,
token: Option<String>,
) -> Result<Self>
pub fn for_local_transport_bootstrap( transport: &TransportConfig, signing_key: SigningKey, destination: VerifyingKey, token: Option<String>, ) -> Result<Self>
Construct a client from a typed local transport.
Source§impl PolicyClient
impl PolicyClient
Sourcepub async fn call_method(&self, method: &str, args: &Value) -> Result<Value>
pub async fn call_method(&self, method: &str, args: &Value) -> Result<Value>
Dispatch a method call by name with JSON arguments. Returns the response as a proper JSON value.
Sourcepub async fn call_streaming_method(
&self,
method: &str,
args: &Value,
ephemeral_pubkey: [u8; 32],
) -> Result<StreamInfo>
pub async fn call_streaming_method( &self, method: &str, args: &Value, ephemeral_pubkey: [u8; 32], ) -> Result<StreamInfo>
Dispatch a streaming method call by name with JSON arguments and an ephemeral public key.
Returns the verified-capnp StreamInfo library type (decoded + COSE-verified
inside call_streaming) — NOT a re-serialized serde_json::Value (#468).
Trait Implementations§
Source§impl Clone for PolicyClient
impl Clone for PolicyClient
Source§fn clone(&self) -> PolicyClient
fn clone(&self) -> PolicyClient
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PolicyRpc for PolicyClient
impl PolicyRpc for PolicyClient
fn check<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PolicyCheck,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn issue_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 IssueToken,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_scopes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ScopeList>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_policy<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PolicyInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn apply_template<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApplyTemplate,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn apply_draft<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApplyDraft,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn rollback<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RollbackPolicy,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_history<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetHistory,
) -> Pin<Box<dyn Future<Output = Result<PolicyHistory>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_diff<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetDiff,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_draft_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DraftStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn add_grouping<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AddGrouping,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn remove_grouping<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RemoveGrouping,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_branch_visibility<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SetBranchVisibility,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_event_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterEventPrefix,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe_event_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SubscribeEventPrefix,
) -> Pin<Box<dyn Future<Output = Result<EventPrefixAccess>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_pending_subscribers<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetPendingSubscribers,
) -> Pin<Box<dyn Future<Output = Result<PendingSubscribers>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn deposit_wrapped_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DepositWrappedKeys,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_service_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ResolveServiceKey,
) -> Pin<Box<dyn Future<Output = Result<ServiceKeyResponse>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_service_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterServiceKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn refresh_service_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RefreshServiceTokenRequest,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exchange_wit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ExchangeWit,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PolicyCheckBatch,
) -> Pin<Box<dyn Future<Output = Result<PolicyCheckBatchResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RevokeCredential,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_credential_revocation<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CheckCredentialRevocation,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterSession,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn revoke_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RevokeSession,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CheckSession,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn exchange_delegated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ExchangeDelegated,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_mediated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MediatedPolicyCheck,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_session_primary<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ResolveSessionPrimary,
) -> Pin<Box<dyn Future<Output = Result<SessionPrimary>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn admit_federate_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AdmitFederateRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn prepare_federate_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PrepareFederateSession,
) -> Pin<Box<dyn Future<Output = Result<PreparedFederateSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn commit_federate_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CommitFederateSession,
) -> Pin<Box<dyn Future<Output = Result<FederateCommittedSession>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for PolicyClient
impl !RefUnwindSafe for PolicyClient
impl Send for PolicyClient
impl Sync for PolicyClient
impl Unpin for PolicyClient
impl UnsafeUnpin for PolicyClient
impl !UnwindSafe for PolicyClient
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
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>
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>
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>
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