pub struct BaoFileHandle(/* private fields */);
Expand description
A cheaply cloneable handle to a bao file, including the hash
Implementations§
Source§impl BaoFileHandle
impl BaoFileHandle
pub fn new_partial(hash: Hash) -> Self
pub fn hash(&self) -> Hash
pub fn bitfield(&self) -> Bitfield
pub fn subscribe(&self) -> BaoFileStorageSubscriber
pub fn data_reader(&self) -> DataReader
pub fn outboard_reader(&self) -> OutboardReader
Trait Implementations§
Source§impl Clone for BaoFileHandle
impl Clone for BaoFileHandle
Source§fn clone(&self) -> BaoFileHandle
fn clone(&self) -> BaoFileHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BaoFileHandle
impl Debug for BaoFileHandle
Auto Trait Implementations§
impl Freeze for BaoFileHandle
impl !RefUnwindSafe for BaoFileHandle
impl Send for BaoFileHandle
impl Sync for BaoFileHandle
impl Unpin for BaoFileHandle
impl !UnwindSafe for BaoFileHandle
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