pub enum Method {
Show 19 variants
ConnectPeerViaHttp,
ConnectWithDid,
ConnectWithSeed,
ListPeers,
CreateOffer,
AnswerOffer,
AcceptAnswer,
SendTo,
Disconnect,
SendSimpleText,
SendHttpRequestMessage,
SendCustomMessage,
PublishMessageToTopic,
FetchMessagesOfTopic,
RegisterService,
LookupService,
PollMessage,
NodeInfo,
NodeDid,
}
Expand description
supported methods.
Variants§
ConnectPeerViaHttp
Connect peer with remote jsonrpc server url
ConnectWithDid
Connect peer with remote peer’s did
ConnectWithSeed
Connect peers from a seed file
ListPeers
List all connected peers
CreateOffer
Create offer for manually handshake
AnswerOffer
Answer offer for manually handshake
AcceptAnswer
Accept Answer for manually handshake
SendTo
Send custom message to peer
Disconnect
Disconnect a peer
SendSimpleText
Send simple text message
SendHttpRequestMessage
SendHttpRequestMessage,
SendCustomMessage
SendCustomMessage,
PublishMessageToTopic
Append data to topic
FetchMessagesOfTopic
Fetch data of topic
RegisterService
Register service
LookupService
Lookup service
PollMessage
Poll message
NodeInfo
Retrieve Node info
NodeDid
Retrieve Node DID
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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