pub struct AppendFile {
pub mutation: MutationId,
pub session: FileSession,
pub offset: u64,
pub bytes: Vec<u8>,
}Fields§
§mutation: MutationId§session: FileSession§offset: u64§bytes: Vec<u8>Trait Implementations§
Source§impl Clone for AppendFile
impl Clone for AppendFile
Source§fn clone(&self) -> AppendFile
fn clone(&self) -> AppendFile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Contains<AppendFile> for Operations
Source§impl Debug for AppendFile
impl Debug for AppendFile
Source§impl Described for AppendFile
impl Described for AppendFile
impl Eq for AppendFile
Source§impl MemorySize for AppendFile
impl MemorySize for AppendFile
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 AppendFile
impl OperationDeclaration for AppendFile
const ID: &'static str = "storage.append_file"
const VERSION: u32 = 1
const POLICY: OperationPolicy = POLICY
const VISIBILITY: Visibility = Visibility::Host
const REPLAY: ReplaySafety = ReplaySafety::Idempotent
type Response = FileProducer
type Input = NoStream
type Output = NoStream
const DESCRIPTION: &'static str = ""
const GRPC: Option<Grpc> = None
fn grant(&self) -> Option<Grant>
fn key(&self) -> Option<CacheKey>
Source§impl PartialEq for AppendFile
impl PartialEq for AppendFile
impl StructuralPartialEq for AppendFile
Source§impl Value for AppendFile
impl Value for AppendFile
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<AppendFile, 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 AppendFile
impl RefUnwindSafe for AppendFile
impl Send for AppendFile
impl Sync for AppendFile
impl Unpin for AppendFile
impl UnsafeUnpin for AppendFile
impl UnwindSafe for AppendFile
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