pub struct PreprocessManager {
pub preprocess_callback: Option<Arc<Mutex<Box<dyn PreprocessCallback + Send + Sync>>>>,
}Fields§
§preprocess_callback: Option<Arc<Mutex<Box<dyn PreprocessCallback + Send + Sync>>>>Implementations§
Source§impl PreprocessManager
impl PreprocessManager
pub fn new() -> Self
pub fn register_callback<T: PreprocessCallback + Send + Sync + 'static>( &mut self, callback: T, )
pub fn is_callback_registered(&self) -> bool
pub async fn execute_preprocessing( &mut self, key: &str, source: &GetObjectOutput, metadata: &mut UploadMetadata, ) -> Result<()>
Trait Implementations§
Source§impl Clone for PreprocessManager
impl Clone for PreprocessManager
Source§impl Debug for PreprocessManager
impl Debug for PreprocessManager
Auto Trait Implementations§
impl !RefUnwindSafe for PreprocessManager
impl !UnwindSafe for PreprocessManager
impl Freeze for PreprocessManager
impl Send for PreprocessManager
impl Sync for PreprocessManager
impl Unpin for PreprocessManager
impl UnsafeUnpin for PreprocessManager
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.