Enum aspenlib::AspenRpcRequest
source · pub enum AspenRpcRequest {
Hello {
name: String,
},
NewRtKactus {
realtime_feed_id: String,
vehicles: Option<Vec<u8>>,
trips: Option<Vec<u8>>,
alerts: Option<Vec<u8>>,
},
}
Expand description
The request sent over the wire from the client to the server.
Variants§
Trait Implementations§
source§impl Debug for AspenRpcRequest
impl Debug for AspenRpcRequest
source§impl<'de> Deserialize<'de> for AspenRpcRequest
impl<'de> Deserialize<'de> for AspenRpcRequest
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
source§impl Serialize for AspenRpcRequest
impl Serialize for AspenRpcRequest
source§impl<S> Serve<AspenRpcRequest> for ServeAspenRpc<S>where
S: AspenRpc,
impl<S> Serve<AspenRpcRequest> for ServeAspenRpc<S>where
S: AspenRpc,
§type Resp = AspenRpcResponse
type Resp = AspenRpcResponse
Type of response.
§type Fut = AspenRpcResponseFut<S>
type Fut = AspenRpcResponseFut<S>
Type of response future.
Auto Trait Implementations§
impl RefUnwindSafe for AspenRpcRequest
impl Send for AspenRpcRequest
impl Sync for AspenRpcRequest
impl Unpin for AspenRpcRequest
impl UnwindSafe for AspenRpcRequest
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