pub trait RemotableCapability: Into<Capability> {
// Provided method
fn try_into_directory_entry(
self,
_scope: ExecutionScope,
) -> Result<Arc<dyn DirectoryEntry>, ConversionError> { ... }
}
Expand description
The trait which remotes Capabilities, either by turning them into FIDL or serving them in a VFS.
Provided Methods§
Sourcefn try_into_directory_entry(
self,
_scope: ExecutionScope,
) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
fn try_into_directory_entry( self, _scope: ExecutionScope, ) -> Result<Arc<dyn DirectoryEntry>, ConversionError>
Attempt to convert self
to a DirectoryEntry which can be served in a
VFS.
The default implementation always returns an error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.