pub struct ResourceSendPlan { /* private fields */ }Implementations§
Source§impl ResourceSendPlan
impl ResourceSendPlan
pub fn new( total_data_bytes: u64, packed_metadata_bytes: Option<u64>, segment_stream_bytes: u64, ) -> Result<ResourceSendPlan, ResourceSendPlanError>
pub const fn total_stream_bytes(&self) -> u64
pub const fn total_segments(&self) -> u64
pub fn segment(&self, index: u64) -> Option<ResourceSegmentPlan>
Trait Implementations§
Source§impl Debug for ResourceSendPlan
impl Debug for ResourceSendPlan
impl Eq for ResourceSendPlan
Source§impl PartialEq for ResourceSendPlan
impl PartialEq for ResourceSendPlan
impl StructuralPartialEq for ResourceSendPlan
Auto Trait Implementations§
impl Freeze for ResourceSendPlan
impl RefUnwindSafe for ResourceSendPlan
impl Send for ResourceSendPlan
impl Sync for ResourceSendPlan
impl Unpin for ResourceSendPlan
impl UnsafeUnpin for ResourceSendPlan
impl UnwindSafe for ResourceSendPlan
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