pub enum ServerToEdge {
ConfigFull {
config: EdgeConfig,
},
ConfigPatch {
mapping_id: Uuid,
op: PatchOp,
mapping: Option<Mapping>,
},
TargetSwitch {
mapping_id: Uuid,
service_target: String,
},
GlyphsUpdate {
glyphs: Vec<Glyph>,
},
Ping,
}Expand description
Frames sent from weave-server to an edge-agent.
Variants§
ConfigFull
Full config snapshot. Sent on (re)connect and on bulk reload.
Fields
§
config: EdgeConfigConfigPatch
Incremental mapping change.
TargetSwitch
Server-initiated active-target switch for an existing mapping.
GlyphsUpdate
Replace the edge’s glyph set. Sent after any glyph CRUD on the server.
Ping
Periodic keepalive to keep NAT/proxies open and detect half-open TCP.
Trait Implementations§
Source§impl Clone for ServerToEdge
impl Clone for ServerToEdge
Source§fn clone(&self) -> ServerToEdge
fn clone(&self) -> ServerToEdge
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerToEdge
impl Debug for ServerToEdge
Source§impl<'de> Deserialize<'de> for ServerToEdge
impl<'de> Deserialize<'de> for ServerToEdge
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
Auto Trait Implementations§
impl Freeze for ServerToEdge
impl RefUnwindSafe for ServerToEdge
impl Send for ServerToEdge
impl Sync for ServerToEdge
impl Unpin for ServerToEdge
impl UnsafeUnpin for ServerToEdge
impl UnwindSafe for ServerToEdge
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