pub struct MetadataWriteRequest { /* private fields */ }Expand description
An immutable write request accepted by MetadataIoActor.
Implementations§
Source§impl MetadataWriteRequest
impl MetadataWriteRequest
Sourcepub fn new(
resource: impl Into<Arc<str>>,
generation: impl Into<MetadataGeneration>,
target: impl Into<PathBuf>,
bytes: impl Into<Vec<u8>>,
) -> Self
pub fn new( resource: impl Into<Arc<str>>, generation: impl Into<MetadataGeneration>, target: impl Into<PathBuf>, bytes: impl Into<Vec<u8>>, ) -> Self
Creates an immutable resource snapshot.
Sourcepub fn with_lane_deadline(self, deadline: MetadataDeadline) -> Self
pub fn with_lane_deadline(self, deadline: MetadataDeadline) -> Self
Bounds this request against the shared blocking lane.
The value is combined with the lane’s phase budgets, so it can only
tighten them and can never widen a shared lane limit. It is deliberately
separate from the durability deadline passed to
MetadataIoActor::submit: an admitted write keeps its ordering and
byte charge when the caller stops observing it, while a request whose
lane deadline has already elapsed is refused instead of started.
Sourcepub const fn lane_deadline(&self) -> Option<MetadataDeadline>
pub const fn lane_deadline(&self) -> Option<MetadataDeadline>
Returns the optional request-level lane deadline.
Sourcepub const fn generation(&self) -> MetadataGeneration
pub const fn generation(&self) -> MetadataGeneration
Returns the immutable generation.
Trait Implementations§
Source§impl Clone for MetadataWriteRequest
impl Clone for MetadataWriteRequest
Auto Trait Implementations§
impl Freeze for MetadataWriteRequest
impl RefUnwindSafe for MetadataWriteRequest
impl Send for MetadataWriteRequest
impl Sync for MetadataWriteRequest
impl Unpin for MetadataWriteRequest
impl UnsafeUnpin for MetadataWriteRequest
impl UnwindSafe for MetadataWriteRequest
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