pub enum Request {
Connect {
outbox: Outbox,
reply: Sender<ConnectionId>,
},
Submit {
from: ConnectionId,
nonce: Nonce,
commit: CommitEnvelope,
},
Disconnect(ConnectionId),
}Variants§
Connect
The reply carries the id back so the connection can name itself in
later requests. Welcome is pushed to outbox from inside the
writer, which is what makes it impossible for a commit to fall
between the snapshot of the log and the start of the subscription.
Submit
Disconnect(ConnectionId)
Auto Trait Implementations§
impl Freeze for Request
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl !UnwindSafe for Request
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