pub struct CKBFSData(/* private fields */);Implementations§
Source§impl CKBFSData
impl CKBFSData
pub const FIELD_COUNT: usize = 4usize
pub fn total_size(&self) -> usize
pub fn field_count(&self) -> usize
pub fn count_extra_fields(&self) -> usize
pub fn has_extra_fields(&self) -> bool
pub fn index(&self) -> Uint32
pub fn checksum(&self) -> Uint32
pub fn content_type(&self) -> Bytes
pub fn filename(&self) -> Bytes
pub fn as_reader<'r>(&'r self) -> CKBFSDataReader<'r>
Trait Implementations§
Source§impl Entity for CKBFSData
impl Entity for CKBFSData
const NAME: &'static str = "CKBFSData"
type Builder = CKBFSDataBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8]
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<CKBFSDataNative> for CKBFSData
impl From<CKBFSDataNative> for CKBFSData
Source§fn from(data: CKBFSDataNative) -> Self
fn from(data: CKBFSDataNative) -> Self
Converts to this type from the input type.
Source§impl Into<CKBFSDataNative> for CKBFSData
impl Into<CKBFSDataNative> for CKBFSData
Source§fn into(self) -> CKBFSDataNative
fn into(self) -> CKBFSDataNative
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for CKBFSData
impl RefUnwindSafe for CKBFSData
impl Send for CKBFSData
impl Sync for CKBFSData
impl Unpin for CKBFSData
impl UnwindSafe for CKBFSData
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