pub enum ViaWireMessageV1 {
Hello(ViaProtocolHelloV1),
Event(Box<ViaEventFrameV1>),
EventAck(ViaEventAckV1),
Backpressure(ViaBackpressureV1),
StreamResume(ViaStreamResumeV1),
StreamCursor(ViaStreamCursorV1),
ContentManifest(Box<ContentManifestV1>),
NeedContent(NeedContentV1),
ContentChunk(Box<ContentChunkV1>),
ContentChunkAck(ContentChunkAckV1),
PlanRequest(ViaPlanRequestV1),
OptimizationPlan(Box<ViaOptimizationPlanV1>),
}Expand description
Closed V1 serialization boundary between Edge and Via.
Only these protocol-owned variants can enter the canonical wire encoder. Provider requests, headers, credentials, and cookie stores have no variant and cannot acquire one outside this crate.
Variants§
Hello(ViaProtocolHelloV1)
Event(Box<ViaEventFrameV1>)
EventAck(ViaEventAckV1)
Backpressure(ViaBackpressureV1)
StreamResume(ViaStreamResumeV1)
StreamCursor(ViaStreamCursorV1)
ContentManifest(Box<ContentManifestV1>)
NeedContent(NeedContentV1)
ContentChunk(Box<ContentChunkV1>)
ContentChunkAck(ContentChunkAckV1)
PlanRequest(ViaPlanRequestV1)
OptimizationPlan(Box<ViaOptimizationPlanV1>)
Implementations§
Source§impl ViaWireMessageV1
impl ViaWireMessageV1
pub fn validate_at(&self, now: &UtcTimestamp) -> Result<(), ValidationError>
pub fn encode_at(&self, now: &UtcTimestamp) -> Result<Vec<u8>, ValidationError>
pub fn decode_at( bytes: &[u8], now: &UtcTimestamp, ) -> Result<Self, ValidationError>
Trait Implementations§
Source§impl Clone for ViaWireMessageV1
impl Clone for ViaWireMessageV1
Source§impl Debug for ViaWireMessageV1
impl Debug for ViaWireMessageV1
Source§impl<'de> Deserialize<'de> for ViaWireMessageV1
impl<'de> Deserialize<'de> for ViaWireMessageV1
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
impl Eq for ViaWireMessageV1
Source§impl PartialEq for ViaWireMessageV1
impl PartialEq for ViaWireMessageV1
Source§impl Serialize for ViaWireMessageV1
impl Serialize for ViaWireMessageV1
impl StructuralPartialEq for ViaWireMessageV1
Auto Trait Implementations§
impl Freeze for ViaWireMessageV1
impl RefUnwindSafe for ViaWireMessageV1
impl Send for ViaWireMessageV1
impl Sync for ViaWireMessageV1
impl Unpin for ViaWireMessageV1
impl UnsafeUnpin for ViaWireMessageV1
impl UnwindSafe for ViaWireMessageV1
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