pub struct ExactProtocolObject<T> {
pub value: T,
pub bytes: Vec<u8>,
pub prepared: PreparedExactObject,
}Expand description
One loaded protocol object: its typed value, its canonical plaintext, and the bytes that go to storage.
bytes and prepared are not the same thing wherever the object is
encrypted: bytes is the canonical semantic value retained by durable
validation, while prepared holds the exact provider representation. The
object’s reference lives on prepared alone.
Fields§
§value: T§bytes: Vec<u8>§prepared: PreparedExactObjectTrait Implementations§
Source§impl<T: Clone> Clone for ExactProtocolObject<T>
impl<T: Clone> Clone for ExactProtocolObject<T>
Source§fn clone(&self) -> ExactProtocolObject<T>
fn clone(&self) -> ExactProtocolObject<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> Freeze for ExactProtocolObject<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExactProtocolObject<T>where
T: RefUnwindSafe,
impl<T> Send for ExactProtocolObject<T>where
T: Send,
impl<T> Sync for ExactProtocolObject<T>where
T: Sync,
impl<T> Unpin for ExactProtocolObject<T>where
T: Unpin,
impl<T> UnsafeUnpin for ExactProtocolObject<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ExactProtocolObject<T>where
T: UnwindSafe,
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