Enum Route
#[non_exhaustive]pub enum Route {
Pull,
Push,
}Expand description
Which of SyncPeer’s two exchanges a buffer belongs to.
A buffer does not say which message it holds (ADR-0097), so the transport
says it: an HTTP path, a Durable Object method name, or a header. This is
that statement, typed. A request on Pull holds a
PullRequest and its reply a Pulled<ResumeToken>; a
request on Push holds a PushBatch and
its reply an Ack.
#[non_exhaustive], because a fifth message is additive (ADR-0097) and a
route for it must not break a transport’s match.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
impl Copy for Route
impl Eq for Route
impl StructuralPartialEq for Route
Auto Trait Implementations§
impl Freeze for Route
impl RefUnwindSafe for Route
impl Send for Route
impl Sync for Route
impl Unpin for Route
impl UnsafeUnpin for Route
impl UnwindSafe for Route
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