pub enum Message {
Query {
query_id: Int256,
query: LiteQuery,
},
Answer {
query_id: Int256,
answer: Response,
},
Ping {
random_id: u64,
},
Pong {
random_id: u64,
},
}Variants§
Query
adnl.message.query query_id:int256 query:bytes = adnl.Message;
Answer
adnl.message.answer query_id:int256 answer:bytes = adnl.Message;
Ping
tcp.ping random_id:long = tcp.Pong;
Pong
tcp.pong random_id:long = tcp.Pong;
Implementations§
Source§impl<'tl> Message
impl<'tl> Message
pub const TL_ID_QUERY: u32 = 3_029_072_250u32
pub const TL_ID_ANSWER: u32 = 262_964_246u32
pub const TL_ID_PING: u32 = 1_292_381_082u32
pub const TL_ID_PONG: u32 = 3_697_933_059u32
Trait Implementations§
Source§impl<S> Service<Message> for UnwrapService<S>
impl<S> Service<Message> for UnwrapService<S>
Source§impl<T> Sink<Message> for LitePeer<T>
impl<T> Sink<Message> for LitePeer<T>
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: Message) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Message) -> 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 moreSource§impl<T> TagStore<Message, Message> for LitePeer<T>
impl<T> TagStore<Message, Message> for LitePeer<T>
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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