pub struct PrivateObject {
pub id: [u8; 32],
pub count: u32,
pub total: u64,
pub content_type: ContentType,
/* private fields */
}Fields§
§id: [u8; 32]§count: u32§total: u64§content_type: ContentTypeImplementations§
Source§impl PrivateObject
impl PrivateObject
pub fn new(chunk: PrivateChunk) -> PrivateObject
pub fn insert(&mut self, chunk: PrivateChunk) -> Result<(), Error>
pub fn received(&self) -> usize
pub fn is_conflicted(&self) -> bool
pub fn is_complete(&self) -> bool
pub fn finish(&self) -> Result<Zeroizing<Vec<u8>>, Error>
Auto Trait Implementations§
impl Freeze for PrivateObject
impl RefUnwindSafe for PrivateObject
impl Send for PrivateObject
impl Sync for PrivateObject
impl Unpin for PrivateObject
impl UnsafeUnpin for PrivateObject
impl UnwindSafe for PrivateObject
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