pub struct BaoFileStorageSubscriber { /* private fields */ }
Implementations§
Source§impl BaoFileStorageSubscriber
impl BaoFileStorageSubscriber
pub fn new(receiver: Receiver<BaoFileStorage>) -> Self
Sourcepub async fn forward(self, tx: Sender<Bitfield>) -> Result<()>
pub async fn forward(self, tx: Sender<Bitfield>) -> Result<()>
Forward observed values to the given sender
Returns an error if sending fails, or if the last sender is dropped
Sourcepub async fn forward_delta(self, tx: Sender<Bitfield>) -> Result<()>
pub async fn forward_delta(self, tx: Sender<Bitfield>) -> Result<()>
Forward observed deltas to the given sender
Returns an error if sending fails, or if the last sender is dropped
Auto Trait Implementations§
impl Freeze for BaoFileStorageSubscriber
impl !RefUnwindSafe for BaoFileStorageSubscriber
impl Send for BaoFileStorageSubscriber
impl Sync for BaoFileStorageSubscriber
impl Unpin for BaoFileStorageSubscriber
impl !UnwindSafe for BaoFileStorageSubscriber
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