pub struct SliceBuffer { /* private fields */ }Implementations§
Source§impl SliceBuffer
impl SliceBuffer
pub fn new(stream: StreamWriter<()>, slice_len: u64) -> Self
pub fn id(&self) -> &StreamId
pub fn head(&self) -> &SignedHead
pub fn prepare(&mut self, len: u64)
pub fn slices(&self) -> &[SliceInfo]
pub fn add_slice(&mut self, slice: &Slice, i: usize) -> Result<()>
pub fn commitable(&self) -> bool
pub fn write_buffer(&mut self) -> Result<()>
pub fn commit(&mut self, sig: [u8; 64]) -> Result<Head>
Auto Trait Implementations§
impl !RefUnwindSafe for SliceBuffer
impl !UnwindSafe for SliceBuffer
impl Freeze for SliceBuffer
impl Send for SliceBuffer
impl Sync for SliceBuffer
impl Unpin for SliceBuffer
impl UnsafeUnpin for SliceBuffer
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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