pub trait WrappedArcBlobBase {
    type Inner: Send + Sync + Unpin;

    // Required methods
    fn blob_name() -> &'static str;
    fn get_arc(&self) -> &Arc<Self::Inner>;
    fn from_arc(a: Arc<Self::Inner>) -> Self;
}
Expand description

Base type for WrappedArcBlob.

This allows blob_name to be available to implementors of WrappedArcBlobImpl, which is convenient for allowing auto-generation of the write function.

Required Associated Types§

source

type Inner: Send + Sync + Unpin

The type that the WrappedArcBlob is wrapping.

Required Methods§

source

fn blob_name() -> &'static str

Return the name of this blob

source

fn get_arc(&self) -> &Arc<Self::Inner>

return a borrow to the wrapped Arc.

source

fn from_arc(a: Arc<Self::Inner>) -> Self

Create this wrapper from an Arc.

Object Safety§

This trait is not object safe.

Implementors§