pub struct ContentServeFabric { /* private fields */ }Expand description
Read side of the content-addressed store for one node.
This fabric answers a request only when its cassette already holds the
request’s ContentKey. It never computes, never contacts another node,
and never invents a route; it is the question “do you hold content id X”
exposed as an EvalFabric.
Implementations§
Source§impl ContentServeFabric
impl ContentServeFabric
Sourcepub fn new(cassette: Arc<EvalCassette>) -> Self
pub fn new(cassette: Arc<EvalCassette>) -> Self
Builds a serve-only fabric over cassette.
Sourcepub fn cassette(&self) -> &Arc<EvalCassette>
pub fn cassette(&self) -> &Arc<EvalCassette>
Returns the cassette this serve fabric reads from.
Trait Implementations§
Source§impl EvalFabric for ContentServeFabric
impl EvalFabric for ContentServeFabric
Auto Trait Implementations§
impl !RefUnwindSafe for ContentServeFabric
impl !UnwindSafe for ContentServeFabric
impl Freeze for ContentServeFabric
impl Send for ContentServeFabric
impl Sync for ContentServeFabric
impl Unpin for ContentServeFabric
impl UnsafeUnpin for ContentServeFabric
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