pub struct RobotMachineAuth { /* private fields */ }Expand description
Robot machine-authentication lifecycle for the compute-node engine.
A new instance always registers first. Once registration succeeds, all token refreshes use the verify endpoint and never fall back to SIWE.
Implementations§
Source§impl RobotMachineAuth
impl RobotMachineAuth
pub fn from_config( cfg: &RobotNodeConfig, capabilities: Vec<String>, ) -> Result<Self>
pub fn new( dds_base_url: Url, registration_credentials: impl Into<String>, node_version: impl Into<String>, capabilities: Vec<String>, request_timeout: Duration, token_config: TokenManagerConfig, ) -> Result<Self>
pub async fn start(&self) -> Result<RobotHandle>
Sourcepub async fn shutdown(&self)
pub async fn shutdown(&self)
Stop and discard any token manager installed by Self::start.
Calling this after a cancelled startup is safe even when initial DDS authentication never completed.
Auto Trait Implementations§
impl !RefUnwindSafe for RobotMachineAuth
impl !UnwindSafe for RobotMachineAuth
impl Freeze for RobotMachineAuth
impl Send for RobotMachineAuth
impl Sync for RobotMachineAuth
impl Unpin for RobotMachineAuth
impl UnsafeUnpin for RobotMachineAuth
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