pub struct Engine<S> { /* private fields */ }Expand description
Durable admin service over one deployment-wide metadata partition.
Implementations§
Source§impl<S: NamespaceStore + 'static> Engine<S>
impl<S: NamespaceStore + 'static> Engine<S>
Sourcepub async fn handle_streamed(
self: Arc<Self>,
path: &str,
headers: &Headers,
wire: &BodyCapture,
decoded: Option<Result<Vec<u8>, ServerError>>,
now_ms: i64,
) -> Reply
pub async fn handle_streamed( self: Arc<Self>, path: &str, headers: &Headers, wire: &BodyCapture, decoded: Option<Result<Vec<u8>, ServerError>>, now_ms: i64, ) -> Reply
Dispatch signed bytes and return a bounded verified stream for ReadPreserved.
Adapters must send streaming responses with Cache-Control: no-store.
Source§impl<S: NamespaceStore> Engine<S>
impl<S: NamespaceStore> Engine<S>
Sourcepub fn new(store: S, partition: Partition, config: Config) -> Self
pub fn new(store: S, partition: Partition, config: Config) -> Self
Build the signed audit export framework.
Sourcepub fn with_purge(self, enabled: bool) -> Self
pub fn with_purge(self, enabled: bool) -> Self
Enable manual acceptance only when a real purge interface is configured.
Sourcepub fn with_operations(self, operations: Arc<dyn AdminOperations>) -> Self
pub fn with_operations(self, operations: Arc<dyn AdminOperations>) -> Self
Attach the opt-in takedown catalog.
Sourcepub async fn handle(
&self,
path: &str,
headers: &Headers,
body: &BodyCapture,
now_ms: i64,
) -> Response
pub async fn handle( &self, path: &str, headers: &Headers, body: &BodyCapture, now_ms: i64, ) -> Response
Dispatch exact signed bytes. Adapters must reject decompression errors
through decoded after authentication, preserving authenticated audit.
Sourcepub async fn handle_decoded(
&self,
path: &str,
headers: &Headers,
wire: &BodyCapture,
decoded: Option<Result<Vec<u8>, ServerError>>,
now_ms: i64,
) -> Response
pub async fn handle_decoded( &self, path: &str, headers: &Headers, wire: &BodyCapture, decoded: Option<Result<Vec<u8>, ServerError>>, now_ms: i64, ) -> Response
Dispatch with separately decompressed request bytes; the signature always
covers wire. An error is recorded only after identity verification.
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Engine<S>
impl<S> !UnwindSafe for Engine<S>
impl<S> Freeze for Engine<S>where
S: Freeze,
impl<S> Send for Engine<S>where
S: Send,
impl<S> Sync for Engine<S>where
S: Sync,
impl<S> Unpin for Engine<S>where
S: Unpin,
impl<S> UnsafeUnpin for Engine<S>where
S: UnsafeUnpin,
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