pub struct AgentAuth { /* private fields */ }Implementations§
Source§impl AgentAuth
impl AgentAuth
pub fn discover() -> Result<Self, AuthError>
pub fn credentials_path(&self) -> PathBuf
pub fn display_api_endpoint(&self) -> String
pub fn login(&self, enrollment_key: &str) -> Result<LoginOutcome, AuthError>
pub fn logout(&self) -> Result<LogoutOutcome, AuthError>
pub fn status(&self) -> Result<AuthStatus, AuthError>
pub fn local_status(&self) -> Result<AuthStatus, AuthError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentAuth
impl RefUnwindSafe for AgentAuth
impl Send for AgentAuth
impl Sync for AgentAuth
impl Unpin for AgentAuth
impl UnsafeUnpin for AgentAuth
impl UnwindSafe for AgentAuth
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