pub enum Cmd<V> {
Append(V),
Read {
from: Position,
},
}Expand description
Requests from the layer above.
Variants§
Append(V)
case ⟨request, c⟩ — append value to the log.
Read
Read the ordered sequence from from onwards. The page has no such request; see the port’s
own documentation for why it exists and what it does not promise.
Fields
§
from: PositionTrait Implementations§
impl<V: Eq> Eq for Cmd<V>
impl<V: PartialEq> StructuralPartialEq for Cmd<V>
Auto Trait Implementations§
impl<V> Freeze for Cmd<V>where
V: Freeze,
impl<V> RefUnwindSafe for Cmd<V>where
V: RefUnwindSafe,
impl<V> Send for Cmd<V>where
V: Send,
impl<V> Sync for Cmd<V>where
V: Sync,
impl<V> Unpin for Cmd<V>where
V: Unpin,
impl<V> UnsafeUnpin for Cmd<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Cmd<V>where
V: 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