pub struct QualiaSyncCodec { /* private fields */ }Implementations§
Source§impl QualiaSyncCodec
impl QualiaSyncCodec
Sourcepub fn with_q42_volume(volume: &Q42Volume) -> Result<Self, CborLdError>
pub fn with_q42_volume(volume: &Q42Volume) -> Result<Self, CborLdError>
Initialize codec with Q42 volume for CBOR-LD support
Sourcepub fn q42_context(&self) -> Option<&Arc<Q42Context>>
pub fn q42_context(&self) -> Option<&Arc<Q42Context>>
Get Q42 context reference
Sourcepub fn cbor_ld_parser(&self) -> Option<&Arc<Q42CborLdParser>>
pub fn cbor_ld_parser(&self) -> Option<&Arc<Q42CborLdParser>>
Get CBOR-LD parser reference
Trait Implementations§
Source§impl Clone for QualiaSyncCodec
impl Clone for QualiaSyncCodec
Source§fn clone(&self) -> QualiaSyncCodec
fn clone(&self) -> QualiaSyncCodec
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 Codec for QualiaSyncCodec
impl Codec for QualiaSyncCodec
Source§type Request = QualiaRequest
type Request = QualiaRequest
The type of inbound and outbound requests.
Source§type Response = QualiaResponse
type Response = QualiaResponse
The type of inbound and outbound responses.
Source§fn read_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
_: &'life1 Self::Protocol,
io: &'life2 mut T,
) -> Pin<Box<dyn Future<Output = Result<Self::Request>> + Send + 'async_trait>>
fn read_request<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 mut self, _: &'life1 Self::Protocol, io: &'life2 mut T, ) -> Pin<Box<dyn Future<Output = Result<Self::Request>> + Send + 'async_trait>>
Reads a request from the given I/O stream according to the
negotiated protocol.
Source§fn read_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
_: &'life1 Self::Protocol,
io: &'life2 mut T,
) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>>
fn read_response<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 mut self, _: &'life1 Self::Protocol, io: &'life2 mut T, ) -> Pin<Box<dyn Future<Output = Result<Self::Response>> + Send + 'async_trait>>
Reads a response from the given I/O stream according to the
negotiated protocol.
Source§fn write_request<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
_: &'life1 Self::Protocol,
io: &'life2 mut T,
req: Self::Request,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn write_request<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 mut self, _: &'life1 Self::Protocol, io: &'life2 mut T, req: Self::Request, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Writes a request to the given I/O stream according to the
negotiated protocol.
Source§fn write_response<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 mut self,
_: &'life1 Self::Protocol,
io: &'life2 mut T,
res: Self::Response,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn write_response<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 mut self, _: &'life1 Self::Protocol, io: &'life2 mut T, res: Self::Response, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Writes a response to the given I/O stream according to the
negotiated protocol.
Auto Trait Implementations§
impl Freeze for QualiaSyncCodec
impl RefUnwindSafe for QualiaSyncCodec
impl Send for QualiaSyncCodec
impl Sync for QualiaSyncCodec
impl Unpin for QualiaSyncCodec
impl UnsafeUnpin for QualiaSyncCodec
impl UnwindSafe for QualiaSyncCodec
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.