BorrowMetadata

Trait BorrowMetadata 

Source
pub trait BorrowMetadata: Sync {
    type Metadata: Sync + 'static;

    // Required method
    fn borrow_metadata(&self) -> &Self::Metadata;
}
Expand description

A trait for borrowing metadata.

Required Associated Types§

Source

type Metadata: Sync + 'static

The metadata borrowed.

Required Methods§

Source

fn borrow_metadata(&self) -> &Self::Metadata

Borrow the metadata.

Implementations on Foreign Types§

Source§

impl<B: BorrowMetadata + Send> BorrowMetadata for Arc<B>

Available on non-crate feature portable-atomic or crate feature portable-atomic-util only.

Implementors§