pub struct BackendCapabilities {
pub transactional_enqueue: bool,
pub durable_jobs: bool,
pub notifications: bool,
pub streams: bool,
pub consumer_groups: bool,
pub distributed_workers: bool,
pub ordering: OrderingCapability,
pub backpressure: BackpressureCapability,
}Expand description
Storage backend feature and guarantee declaration.
Capabilities describe what a backend can honestly provide. They are not a marketing matrix: application code can inspect this value when it needs a specific storage guarantee.
Fields§
§transactional_enqueue: bool§durable_jobs: bool§notifications: bool§streams: bool§consumer_groups: bool§distributed_workers: bool§ordering: OrderingCapability§backpressure: BackpressureCapabilityImplementations§
Source§impl BackendCapabilities
impl BackendCapabilities
pub const fn memory() -> Self
pub const fn sqlite() -> Self
pub const fn postgres() -> Self
pub const fn redis() -> Self
pub fn supports_portable_job_api(&self) -> bool
Sourcepub const fn semantics(&self) -> Option<BackendSemanticCapabilities>
pub const fn semantics(&self) -> Option<BackendSemanticCapabilities>
Returns the detailed profile for an exact built-in capability declaration.
Unknown custom combinations return None instead of being guessed as a built-in backend.
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§fn clone(&self) -> BackendCapabilities
fn clone(&self) -> BackendCapabilities
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 moreimpl Copy for BackendCapabilities
Source§impl Debug for BackendCapabilities
impl Debug for BackendCapabilities
Source§impl<'de> Deserialize<'de> for BackendCapabilities
impl<'de> Deserialize<'de> for BackendCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BackendCapabilities
Source§impl PartialEq for BackendCapabilities
impl PartialEq for BackendCapabilities
Source§impl Serialize for BackendCapabilities
impl Serialize for BackendCapabilities
impl StructuralPartialEq for BackendCapabilities
Auto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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