pub struct VerifiedBlob { /* private fields */ }Expand description
One verified raw blob buffer and its aggregate admission lease.
The wrapper intentionally has no Clone or owned-byte extraction API.
Borrowed bytes may still be copied under the caller’s own allocation budget.
ⓘ
use khive_runtime::VerifiedBlob;
fn clone_verified(blob: &VerifiedBlob) {
let _ = <VerifiedBlob as Clone>::clone(blob);
}ⓘ
use khive_runtime::VerifiedBlob;
fn extract_owned(blob: VerifiedBlob) -> Vec<u8> {
blob.into_bytes()
}ⓘ
use khive_runtime::VerifiedBlob;
fn access_private_storage(blob: &VerifiedBlob) -> usize {
blob.bytes.len()
}Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for VerifiedBlob
impl AsRef<[u8]> for VerifiedBlob
Auto Trait Implementations§
impl !RefUnwindSafe for VerifiedBlob
impl !UnwindSafe for VerifiedBlob
impl Freeze for VerifiedBlob
impl Send for VerifiedBlob
impl Sync for VerifiedBlob
impl Unpin for VerifiedBlob
impl UnsafeUnpin for VerifiedBlob
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more