pub struct ManagedObjectStoragePlugin { /* private fields */ }Expand description
Object-storage plugin with the direct-upload and metadata lifecycle installed.
Implementations§
Source§impl ManagedObjectStoragePlugin
impl ManagedObjectStoragePlugin
pub fn new<S>(
store: Arc<dyn ObjectStore>,
signer: Arc<S>,
metadata_reader: Arc<dyn ObjectMetadataReader>,
policy: ObjectUploadPolicy,
) -> Selfwhere
S: ObjectAccessSigner + ObjectUploadSigner + 'static,
Sourcepub fn new_with_signers(
store: Arc<dyn ObjectStore>,
access_signer: Arc<dyn ObjectAccessSigner>,
upload_signer: Arc<dyn ObjectUploadSigner>,
metadata_reader: Arc<dyn ObjectMetadataReader>,
policy: ObjectUploadPolicy,
) -> Self
pub fn new_with_signers( store: Arc<dyn ObjectStore>, access_signer: Arc<dyn ObjectAccessSigner>, upload_signer: Arc<dyn ObjectUploadSigner>, metadata_reader: Arc<dyn ObjectMetadataReader>, policy: ObjectUploadPolicy, ) -> Self
Construct managed storage with independent private-download and upload signers while retaining static, typed composition.
Trait Implementations§
Source§impl Clone for ManagedObjectStoragePlugin
impl Clone for ManagedObjectStoragePlugin
Source§fn clone(&self) -> ManagedObjectStoragePlugin
fn clone(&self) -> ManagedObjectStoragePlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManagedObjectStoragePlugin
impl Debug for ManagedObjectStoragePlugin
Source§impl Plugin for ManagedObjectStoragePlugin
impl Plugin for ManagedObjectStoragePlugin
fn descriptor(&self) -> PluginDescriptor
fn install(&self, context: &mut PluginContext<'_>) -> Result<(), PluginError>
Source§fn configure_descriptor(
&self,
_descriptor: &mut PluginDescriptor,
_configuration: Option<&Value>,
) -> Result<(), PluginError>
fn configure_descriptor( &self, _descriptor: &mut PluginDescriptor, _configuration: Option<&Value>, ) -> Result<(), PluginError>
Adjusts graph metadata from the plugin’s validated runtime configuration. Read more
Source§fn finalize(
&self,
_context: &mut PluginFinalizeContext<'_>,
) -> Result<(), PluginError>
fn finalize( &self, _context: &mut PluginFinalizeContext<'_>, ) -> Result<(), PluginError>
Completes composition after every enabled plugin has installed its services and
contributions. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for ManagedObjectStoragePlugin
impl !UnwindSafe for ManagedObjectStoragePlugin
impl Freeze for ManagedObjectStoragePlugin
impl Send for ManagedObjectStoragePlugin
impl Sync for ManagedObjectStoragePlugin
impl Unpin for ManagedObjectStoragePlugin
impl UnsafeUnpin for ManagedObjectStoragePlugin
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