pub enum EdgePayload {
Push(EdgePush),
Response(EdgeResponse),
Request(EdgeRequest),
Error(EdgeError),
}Variants§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for EdgePayload
impl<'__de, __Context> BorrowDecode<'__de, __Context> for EdgePayload
Source§fn borrow_decode<__D>(decoder: &mut __D) -> Result<EdgePayload, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
fn borrow_decode<__D>(decoder: &mut __D) -> Result<EdgePayload, DecodeError>where
__D: BorrowDecoder<'__de, Context = __Context>,
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for EdgePayload
impl Clone for EdgePayload
Source§fn clone(&self) -> EdgePayload
fn clone(&self) -> EdgePayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EdgePayload
impl Debug for EdgePayload
Source§impl<__Context> Decode<__Context> for EdgePayload
impl<__Context> Decode<__Context> for EdgePayload
Source§fn decode<__D>(decoder: &mut __D) -> Result<EdgePayload, DecodeError>where
__D: Decoder<Context = __Context>,
fn decode<__D>(decoder: &mut __D) -> Result<EdgePayload, DecodeError>where
__D: Decoder<Context = __Context>,
Attempt to decode this type with the given Decode.
Source§impl<'de> Deserialize<'de> for EdgePayload
impl<'de> Deserialize<'de> for EdgePayload
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgePayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EdgePayload, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for EdgePayload
impl Encode for EdgePayload
Source§impl Serialize for EdgePayload
impl Serialize for EdgePayload
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Sink<EdgePayload> for TokioChannelSocket
impl Sink<EdgePayload> for TokioChannelSocket
Source§type Error = EdgeConnectionError
type Error = EdgeConnectionError
The type of value produced by the sink when an error occurs.
Source§fn poll_close(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_close( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush any remaining output and close this sink, if necessary. Read more
Source§fn poll_flush(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_flush( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush any remaining output from this sink. Read more
Source§fn poll_ready(
self: Pin<&mut Self>,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, _cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink to receive a value. Read moreSource§fn start_send(
self: Pin<&mut Self>,
item: EdgePayload,
) -> Result<(), Self::Error>
fn start_send( self: Pin<&mut Self>, item: EdgePayload, ) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreAuto Trait Implementations§
impl !Freeze for EdgePayload
impl RefUnwindSafe for EdgePayload
impl Send for EdgePayload
impl Sync for EdgePayload
impl Unpin for EdgePayload
impl UnsafeUnpin for EdgePayload
impl UnwindSafe for EdgePayload
Blanket Implementations§
impl<T> AppData for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
impl<T> AppDataResponse for Twhere
T: OptionalSend + OptionalSync + 'static + OptionalSerde,
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