pub enum ChunkTransferProfile {
StandardV1,
LargeV1,
Managed,
}Expand description
Selects one of the two exact public v1 profiles or Core’s managed policy.
Variants§
Implementations§
Source§impl ChunkTransferProfile
impl ChunkTransferProfile
Sourcepub fn selected_profile_for_bytes(
self,
object_bytes: u64,
) -> Result<&'static str, TransferSourceError>
pub fn selected_profile_for_bytes( self, object_bytes: u64, ) -> Result<&'static str, TransferSourceError>
Resolve the exact manifest profile from bounded object metadata.
The managed decision needs only the byte length; it does not read or allocate the payload.
Trait Implementations§
Source§impl Clone for ChunkTransferProfile
impl Clone for ChunkTransferProfile
Source§fn clone(&self) -> ChunkTransferProfile
fn clone(&self) -> ChunkTransferProfile
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 Copy for ChunkTransferProfile
Source§impl Debug for ChunkTransferProfile
impl Debug for ChunkTransferProfile
impl Eq for ChunkTransferProfile
Source§impl PartialEq for ChunkTransferProfile
impl PartialEq for ChunkTransferProfile
impl StructuralPartialEq for ChunkTransferProfile
Auto Trait Implementations§
impl Freeze for ChunkTransferProfile
impl RefUnwindSafe for ChunkTransferProfile
impl Send for ChunkTransferProfile
impl Sync for ChunkTransferProfile
impl Unpin for ChunkTransferProfile
impl UnsafeUnpin for ChunkTransferProfile
impl UnwindSafe for ChunkTransferProfile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.