pub enum SlotFrame {
Admin(StoreChange),
KeyCopy,
Announcement(SnapshotAnnouncement),
}Expand description
The second frame of a bounded slot. Writes use a streamed body instead.
Variants§
Admin(StoreChange)
The admin operation.
KeyCopy
Acknowledges the key box in the clear prefix.
Announcement(SnapshotAnnouncement)
Announces a snapshot body uploaded before the claim.
Implementations§
Source§impl SlotFrame
impl SlotFrame
Sourcepub fn encode(
&self,
header: &SlotHeader,
path: &ObjectPath,
) -> Result<Vec<u8>, Error>
pub fn encode( &self, header: &SlotHeader, path: &ObjectPath, ) -> Result<Vec<u8>, Error>
Encode both plaintext frames, checking path-dependent facts.
Sourcepub fn decode(
bytes: &[u8],
path: &ObjectPath,
) -> Result<(SlotHeader, Self), Error>
pub fn decode( bytes: &[u8], path: &ObjectPath, ) -> Result<(SlotHeader, Self), Error>
Decode both frames. The clear prefix’s kind must also match this result.
Trait Implementations§
impl Eq for SlotFrame
impl StructuralPartialEq for SlotFrame
Auto Trait Implementations§
impl Freeze for SlotFrame
impl RefUnwindSafe for SlotFrame
impl Send for SlotFrame
impl Sync for SlotFrame
impl Unpin for SlotFrame
impl UnsafeUnpin for SlotFrame
impl UnwindSafe for SlotFrame
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