pub struct PreparedDeviceJoinObject {
pub object: ExactObjectRef,
pub stored_bytes: Vec<u8>,
}Fields§
§object: ExactObjectRef§stored_bytes: Vec<u8>Implementations§
Source§impl PreparedDeviceJoinObject
impl PreparedDeviceJoinObject
pub fn from_prepared(prepared: &PreparedExactObject) -> Self
Sourcepub fn restore(&self) -> Result<PreparedExactObject, StorageError>
pub fn restore(&self) -> Result<PreparedExactObject, StorageError>
The prepared object this journal entry recorded, ready to be created again. A resumed write creates these exact bytes rather than preparing a second object, so the retry writes what the journal already committed to.
Trait Implementations§
Source§impl Clone for PreparedDeviceJoinObject
impl Clone for PreparedDeviceJoinObject
Source§fn clone(&self) -> PreparedDeviceJoinObject
fn clone(&self) -> PreparedDeviceJoinObject
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 moreSource§impl Debug for PreparedDeviceJoinObject
impl Debug for PreparedDeviceJoinObject
Source§impl<'de> Deserialize<'de> for PreparedDeviceJoinObject
impl<'de> Deserialize<'de> for PreparedDeviceJoinObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreparedDeviceJoinObject
impl PartialEq for PreparedDeviceJoinObject
Source§impl Serialize for PreparedDeviceJoinObject
impl Serialize for PreparedDeviceJoinObject
impl Eq for PreparedDeviceJoinObject
impl StructuralPartialEq for PreparedDeviceJoinObject
Auto Trait Implementations§
impl Freeze for PreparedDeviceJoinObject
impl RefUnwindSafe for PreparedDeviceJoinObject
impl Send for PreparedDeviceJoinObject
impl Sync for PreparedDeviceJoinObject
impl Unpin for PreparedDeviceJoinObject
impl UnsafeUnpin for PreparedDeviceJoinObject
impl UnwindSafe for PreparedDeviceJoinObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.