pub trait ShareSheet {
// Required methods
fn share(&self, content: ShareContent) -> Result<(), ShareError>;
fn is_supported(&self) -> bool;
}Expand description
Re-export framework services (HTTP, URI, etc.) from the dedicated services crate.
The OS share sheet. Installed by the platform backend; the default is a
no-op that reports ShareError::Unsupported.
Required Methods§
Present the system share sheet for content. Fire-and-forget: it
resolves once presented and does not report the user’s choice.
Sourcefn is_supported(&self) -> bool
fn is_supported(&self) -> bool
Whether a real system share sheet is available (so UI can choose between “Share” and “Save…”).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".