pub struct HashFile {
pub source: FileSource,
pub range: ByteRange,
}Fields§
§source: FileSource§range: ByteRangeTrait Implementations§
impl Contains<HashFile> for Operations
impl Eq for HashFile
Source§impl MemorySize for HashFile
impl MemorySize for HashFile
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Source§impl OperationDeclaration for HashFile
impl OperationDeclaration for HashFile
const ID: &'static str = "storage.hash_file"
const VERSION: u32 = 1
const POLICY: OperationPolicy = IO_POLICY
const VISIBILITY: Visibility = Visibility::Shared
const REPLAY: ReplaySafety = ReplaySafety::Idempotent
const GRPC: Option<Grpc>
type Response = FileHash
type Input = NoStream
type Output = NoStream
fn grant(&self) -> Option<Grant>
const DESCRIPTION: &'static str = ""
fn key(&self) -> Option<CacheKey>
impl StructuralPartialEq for HashFile
Source§impl Value for HashFile
impl Value for HashFile
fn write(&self, bytes: &mut Vec<u8>)
fn size(&self) -> usize
fn memory(input: &mut Reader<'_>) -> Result<usize, MessageError>
fn read(input: &mut Reader<'_>) -> Result<HashFile, MessageError>
fn size_many(values: &[Self]) -> usize
fn write_many(values: &[Self], bytes: &mut Vec<u8>)
fn memory_many( input: &mut Reader<'_>, count: usize, ) -> Result<usize, MessageError>
fn read_many( input: &mut Reader<'_>, count: usize, ) -> Result<Vec<Self>, MessageError>
Auto Trait Implementations§
impl Freeze for HashFile
impl RefUnwindSafe for HashFile
impl Send for HashFile
impl Sync for HashFile
impl Unpin for HashFile
impl UnsafeUnpin for HashFile
impl UnwindSafe for HashFile
Blanket Implementations§
impl<T> Allocation for T
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