pub struct SyncOperationCtx<'a, IO: SyncEngineIo, Ctx> {
pub coro: &'a Coro<Ctx>,
pub io: &'a SyncEngineIoStats<IO>,
pub remote_url: Option<String>,
pub remote_encryption_key: Option<String>,
}Fields§
§coro: &'a Coro<Ctx>§io: &'a SyncEngineIoStats<IO>§remote_url: Option<String>§remote_encryption_key: Option<String>Implementations§
Source§impl<'a, IO: SyncEngineIo, Ctx> SyncOperationCtx<'a, IO, Ctx>
impl<'a, IO: SyncEngineIo, Ctx> SyncOperationCtx<'a, IO, Ctx>
Sourcepub fn new(
coro: &'a Coro<Ctx>,
io: &'a SyncEngineIoStats<IO>,
remote_url: Option<String>,
remote_encryption_key: Option<&str>,
) -> Self
pub fn new( coro: &'a Coro<Ctx>, io: &'a SyncEngineIoStats<IO>, remote_url: Option<String>, remote_encryption_key: Option<&str>, ) -> Self
Create a sync operation context.
remote_encryption_key should be base64-encoded if provided.
pub fn http( &self, method: &str, path: &str, body: Option<Vec<u8>>, headers: &[(&str, &str)], ) -> Result<IO::DataCompletionBytes>
Auto Trait Implementations§
impl<'a, IO, Ctx> Freeze for SyncOperationCtx<'a, IO, Ctx>
impl<'a, IO, Ctx> RefUnwindSafe for SyncOperationCtx<'a, IO, Ctx>where
IO: RefUnwindSafe,
impl<'a, IO, Ctx> Send for SyncOperationCtx<'a, IO, Ctx>where
Ctx: Send,
impl<'a, IO, Ctx> Sync for SyncOperationCtx<'a, IO, Ctx>where
Ctx: Send,
impl<'a, IO, Ctx> Unpin for SyncOperationCtx<'a, IO, Ctx>
impl<'a, IO, Ctx> UnsafeUnpin for SyncOperationCtx<'a, IO, Ctx>
impl<'a, IO, Ctx> UnwindSafe for SyncOperationCtx<'a, IO, Ctx>where
IO: RefUnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
Source§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
Source§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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 more