pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub async fn authentication( &self, options: AuthenticationOptions, ) -> Result<AuthenticationResult, AgentError>
pub async fn forget_credential( &self, credential_id: &str, ) -> Result<(), AgentError>
Source§impl Session
impl Session
pub fn service_url(&self) -> &Url
pub async fn identity(&self) -> Result<AgentIdentity, AgentError>
Source§impl Session
impl Session
pub async fn enroll( &self, options: EnrollOptions, ) -> Result<CommandResult<EnrollResponse>, AgentError>
pub async fn status(&self) -> Result<CommandResult<StatusResponse>, AgentError>
pub async fn wait_for_active( &self, options: WaitOptions, ) -> Result<CommandResult<StatusResponse>, AgentError>
pub async fn grant( &self, options: GrantOptions, ) -> Result<CommandResult<GrantResult>, AgentError>
pub async fn revoke( &self, options: RevokeOptions, ) -> Result<CommandResult<RevokeResponse>, AgentError>
Source§impl Session
impl Session
pub async fn inspect(&self) -> Result<Inspection, AgentError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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