pub enum Action {
Relay,
Append,
Replace,
Compact {
seq: SequenceNumber,
},
}
Variants§
Relay
Broadcast to relavent clients without altering the stream.
Append
Append to the stream.
Replace
Replace the entire stream.
Compact
Fields
§
seq: SequenceNumber
Replace the entire stream up to the given sequence number. If the stream has already been rolled up to an equal or greater sequence number, this is ignored.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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