pub trait Backend {
// Required methods
fn installations(
&self,
) -> impl Future<Output = Result<Vec<LinkedInstallation>, BrokerError>> + Send;
fn mint(
&self,
request: MintRequest,
) -> impl Future<Output = Result<InstallationToken, BrokerError>> + Send;
fn revalidate(&self) -> impl Future<Output = Result<(), TokenError>> + Send;
fn connection(
&self,
) -> impl Future<Output = Result<String, TokenError>> + Send;
}Expand description
The broker, as this module needs it.
Required Methods§
fn installations( &self, ) -> impl Future<Output = Result<Vec<LinkedInstallation>, BrokerError>> + Send
fn mint( &self, request: MintRequest, ) -> impl Future<Output = Result<InstallationToken, BrokerError>> + Send
Sourcefn revalidate(&self) -> impl Future<Output = Result<(), TokenError>> + Send
fn revalidate(&self) -> impl Future<Output = Result<(), TokenError>> + Send
Present the person’s own fresh GitHub token so the broker re-reads what they can see.
Sourcefn connection(&self) -> impl Future<Output = Result<String, TokenError>> + Send
fn connection(&self) -> impl Future<Output = Result<String, TokenError>> + Send
Who the tokens are minted for: the person’s brokered GitHub account, while AgentMux Cloud is signed in. Another answer than the last one (or none) means what was cached is not theirs.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".