pub struct ProviderSession { /* private fields */ }Expand description
An initialized secretspec.provider/1 client together with the child
process that owns its private transport.
Implementations§
Source§impl ProviderSession
impl ProviderSession
Sourcepub async fn launch(
options: LaunchOptions,
client: Product,
limits: Limits,
application: ProviderInitializeApplication,
startup_deadline_unix_ms: u64,
) -> Result<Self>
pub async fn launch( options: LaunchOptions, client: Product, limits: Limits, application: ProviderInitializeApplication, startup_deadline_unix_ms: u64, ) -> Result<Self>
Launch and validate a provider endpoint. The returned session owns both process and transport.
Sourcepub async fn launch_with_credential_broker(
options: LaunchOptions,
client: Product,
limits: Limits,
application: ProviderInitializeApplication,
startup_deadline_unix_ms: u64,
responder: Option<Arc<dyn CredentialResponder>>,
) -> Result<Self>
pub async fn launch_with_credential_broker( options: LaunchOptions, client: Product, limits: Limits, application: ProviderInitializeApplication, startup_deadline_unix_ms: u64, responder: Option<Arc<dyn CredentialResponder>>, ) -> Result<Self>
As Self::launch, allowing the endpoint to request only the provider
credentials it actually needs during initialization or a provider
operation, including provider.set (0.21+). The responder supplies the
value through IPC; it does not require a terminal and may use a GUI,
credential store, or another caller-owned input mechanism.
pub fn raw(&self) -> &Client
pub async fn execute<M>(
&self,
params: &M::Params,
deadline_unix_ms: u64,
) -> Result<M::Result>where
M: Method,
pub async fn call<P: Serialize, R: DeserializeOwned>( &self, method: &str, params: &P, deadline_unix_ms: u64, ) -> Result<R>
pub async fn resolve_address( &self, params: &<ResolveAddress as Method>::Params, deadline_unix_ms: u64, ) -> Result<<ResolveAddress as Method>::Result>
pub async fn get( &self, params: &<Get as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Get as Method>::Result>
pub async fn get_many( &self, params: &<GetMany as Method>::Params, deadline_unix_ms: u64, ) -> Result<<GetMany as Method>::Result>
pub async fn exists( &self, params: &<Exists as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Exists as Method>::Result>
pub async fn set( &self, params: &<Set as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Set as Method>::Result>
pub async fn set_expiring( &self, params: &<SetExpiring as Method>::Params, deadline_unix_ms: u64, ) -> Result<<SetExpiring as Method>::Result>
pub async fn delete( &self, params: &<Delete as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Delete as Method>::Result>
pub async fn clear( &self, params: &<Clear as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Clear as Method>::Result>
pub async fn describe_write_target( &self, params: &<DescribeWriteTarget as Method>::Params, deadline_unix_ms: u64, ) -> Result<<DescribeWriteTarget as Method>::Result>
pub async fn reflect( &self, params: &<Reflect as Method>::Params, deadline_unix_ms: u64, ) -> Result<<Reflect as Method>::Result>
pub async fn check_writable( &self, params: &AddressParams, deadline_unix_ms: u64, ) -> Result<()>
pub async fn check_deletable( &self, params: &AddressParams, deadline_unix_ms: u64, ) -> Result<()>
pub fn capabilities(&self) -> &HashSet<String>
pub fn supports(&self, method: &str) -> bool
pub fn metadata(&self) -> &Metadata
pub fn is_closed(&self) -> bool
pub async fn close(&self, deadline_unix_ms: u64) -> Result<()>
Auto Trait Implementations§
impl !Freeze for ProviderSession
impl !RefUnwindSafe for ProviderSession
impl !UnwindSafe for ProviderSession
impl Send for ProviderSession
impl Sync for ProviderSession
impl Unpin for ProviderSession
impl UnsafeUnpin for ProviderSession
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