pub struct CreateWithDataResult {
pub status: CreateStreamResult,
pub next_offset: Offset,
pub closed: bool,
}Expand description
Result of atomic create-with-data operation.
Bundles creation status with a metadata snapshot taken under the
same lock hold so the handler never needs a separate head() call.
Fields§
§status: CreateStreamResultWhether the stream was newly created or already existed.
next_offset: OffsetNext offset (for Stream-Next-Offset response header).
closed: boolWhether the stream is closed (for Stream-Closed response header).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateWithDataResult
impl RefUnwindSafe for CreateWithDataResult
impl Send for CreateWithDataResult
impl Sync for CreateWithDataResult
impl Unpin for CreateWithDataResult
impl UnsafeUnpin for CreateWithDataResult
impl UnwindSafe for CreateWithDataResult
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