pub trait UploadLinkIssuer {
// Required methods
fn create_link(
&mut self,
caps: LinkCaps,
passphrase: Option<&str>,
) -> Result<UploadLink, DropError>;
fn revoke_link(&mut self, link: UploadLinkId) -> Result<(), DropError>;
}Expand description
Issues and revokes upload links on a trusted (native) client — the seam
lifecycle::Workspace will implement. Provisioning mints the Drop Key, wraps its
private half under the master key + OGK escrow, and registers the link record.
Required Methods§
Sourcefn create_link(
&mut self,
caps: LinkCaps,
passphrase: Option<&str>,
) -> Result<UploadLink, DropError>
fn create_link( &mut self, caps: LinkCaps, passphrase: Option<&str>, ) -> Result<UploadLink, DropError>
Provision an upload link with caps; passphrase adds the server-verified
Argon2id abuse gate (never transmitted — the record stores a verifier).
Sourcefn revoke_link(&mut self, link: UploadLinkId) -> Result<(), DropError>
fn revoke_link(&mut self, link: UploadLinkId) -> Result<(), DropError>
Revoke a link; the serve path refuses it within its fail-closed cache window.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".