pub struct TransferLimits {
pub max_object_bytes: u64,
pub max_block_bytes: u32,
pub max_blocks: usize,
pub max_files: usize,
pub max_store_bytes: u64,
}Expand description
Admission bounds, validated before network or persistent work.
Fields§
§max_object_bytes: u64Maximum complete object bytes, at most 256 MiB.
max_block_bytes: u32Maximum block bytes, at most 1 MiB.
max_blocks: usizeMaximum hashes/blocks per object, at most 4096.
max_files: usizeMaximum store files, including metadata and lock, at most 65536.
max_store_bytes: u64Store bytes including complete objects, partial blocks, staging and metadata.
Implementations§
Source§impl TransferLimits
impl TransferLimits
Sourcepub fn validate(&self) -> TransferResult<()>
pub fn validate(&self) -> TransferResult<()>
Rejects zero and policies outside this beta’s hard limits.
Trait Implementations§
Source§impl Clone for TransferLimits
impl Clone for TransferLimits
impl Copy for TransferLimits
Source§impl Debug for TransferLimits
impl Debug for TransferLimits
Source§impl Default for TransferLimits
impl Default for TransferLimits
impl Eq for TransferLimits
Source§impl PartialEq for TransferLimits
impl PartialEq for TransferLimits
impl StructuralPartialEq for TransferLimits
Auto Trait Implementations§
impl Freeze for TransferLimits
impl RefUnwindSafe for TransferLimits
impl Send for TransferLimits
impl Sync for TransferLimits
impl Unpin for TransferLimits
impl UnsafeUnpin for TransferLimits
impl UnwindSafe for TransferLimits
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