pub enum OtherRequest {
Show 28 variants
GetInfo(GetInfoRequest),
GetHeight(GetHeightRequest),
GetTransactions(GetTransactionsRequest),
GetAltBlocksHashes(GetAltBlocksHashesRequest),
IsKeyImageSpent(IsKeyImageSpentRequest),
SendRawTransaction(SendRawTransactionRequest),
StartMining(StartMiningRequest),
StopMining(StopMiningRequest),
MiningStatus(MiningStatusRequest),
SaveBc(SaveBcRequest),
GetPeerList(GetPeerListRequest),
SetLogHashRate(SetLogHashRateRequest),
SetLogLevel(SetLogLevelRequest),
SetLogCategories(SetLogCategoriesRequest),
SetBootstrapDaemon(SetBootstrapDaemonRequest),
GetTransactionPool(GetTransactionPoolRequest),
GetTransactionPoolStats(GetTransactionPoolStatsRequest),
StopDaemon(StopDaemonRequest),
GetLimit(GetLimitRequest),
SetLimit(SetLimitRequest),
OutPeers(OutPeersRequest),
InPeers(InPeersRequest),
GetNetStats(GetNetStatsRequest),
GetOuts(GetOutsRequest),
Update(UpdateRequest),
PopBlocks(PopBlocksRequest),
GetTransactionPoolHashes(GetTransactionPoolHashesRequest),
GetPublicNodes(GetPublicNodesRequest),
}Expand description
Other JSON requests.
This enum contains all crate::other requests.
See also: OtherResponse.
§(De)serialization
The serde implementation will (de)serialize from
the inner variant itself, e.g. OtherRequest::SetLogLevel
has the same (de)serialization as SetLogLevelRequest.
use cuprate_rpc_types::other::*;
let request = OtherRequest::SetLogLevel(Default::default());
let json = serde_json::to_string(&request).unwrap();
assert_eq!(json, r#"{"level":0}"#);Variants§
GetInfo(GetInfoRequest)
GetHeight(GetHeightRequest)
GetTransactions(GetTransactionsRequest)
GetAltBlocksHashes(GetAltBlocksHashesRequest)
IsKeyImageSpent(IsKeyImageSpentRequest)
SendRawTransaction(SendRawTransactionRequest)
StartMining(StartMiningRequest)
StopMining(StopMiningRequest)
MiningStatus(MiningStatusRequest)
SaveBc(SaveBcRequest)
GetPeerList(GetPeerListRequest)
SetLogHashRate(SetLogHashRateRequest)
SetLogLevel(SetLogLevelRequest)
SetLogCategories(SetLogCategoriesRequest)
SetBootstrapDaemon(SetBootstrapDaemonRequest)
GetTransactionPool(GetTransactionPoolRequest)
GetTransactionPoolStats(GetTransactionPoolStatsRequest)
StopDaemon(StopDaemonRequest)
GetLimit(GetLimitRequest)
SetLimit(SetLimitRequest)
OutPeers(OutPeersRequest)
InPeers(InPeersRequest)
GetNetStats(GetNetStatsRequest)
GetOuts(GetOutsRequest)
Update(UpdateRequest)
PopBlocks(PopBlocksRequest)
GetTransactionPoolHashes(GetTransactionPoolHashesRequest)
GetPublicNodes(GetPublicNodesRequest)
Trait Implementations§
Source§impl Clone for OtherRequest
impl Clone for OtherRequest
Source§fn clone(&self) -> OtherRequest
fn clone(&self) -> OtherRequest
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 OtherRequest
impl Debug for OtherRequest
Source§impl<'de> Deserialize<'de> for OtherRequest
Available on crate feature serde only.
impl<'de> Deserialize<'de> for OtherRequest
Available on crate feature
serde only.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
impl Eq for OtherRequest
Source§impl Hash for OtherRequest
impl Hash for OtherRequest
Source§impl Ord for OtherRequest
impl Ord for OtherRequest
Source§fn cmp(&self, other: &OtherRequest) -> Ordering
fn cmp(&self, other: &OtherRequest) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OtherRequest
impl PartialEq for OtherRequest
Source§impl PartialOrd for OtherRequest
impl PartialOrd for OtherRequest
Source§impl RpcCallValue for OtherRequest
impl RpcCallValue for OtherRequest
Source§fn is_restricted(&self) -> bool
fn is_restricted(&self) -> bool
Same as
RpcCall::IS_RESTRICTED. Read moreSource§impl Serialize for OtherRequest
Available on crate feature serde only.
impl Serialize for OtherRequest
Available on crate feature
serde only.impl StructuralPartialEq for OtherRequest
Auto Trait Implementations§
impl Freeze for OtherRequest
impl RefUnwindSafe for OtherRequest
impl Send for OtherRequest
impl Sync for OtherRequest
impl Unpin for OtherRequest
impl UnsafeUnpin for OtherRequest
impl UnwindSafe for OtherRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes
Size for each variant:
GetInfo: 0 bytesGetHeight: 0 bytesGetTransactions: 40 bytesGetAltBlocksHashes: 0 bytesIsKeyImageSpent: 32 bytesSendRawTransaction: 40 bytesStartMining: 48 bytesStopMining: 0 bytesMiningStatus: 0 bytesSaveBc: 0 bytesGetPeerList: 10 bytesSetLogHashRate: 9 bytesSetLogLevel: 9 bytesSetLogCategories: 32 bytesSetBootstrapDaemon: 96 bytesGetTransactionPool: 0 bytesGetTransactionPoolStats: 0 bytesStopDaemon: 0 bytesGetLimit: 0 bytesSetLimit: 24 bytesOutPeers: 16 bytesInPeers: 16 bytesGetNetStats: 0 bytesGetOuts: 40 bytesUpdate: 56 bytesPopBlocks: 16 bytesGetTransactionPoolHashes: 0 bytesGetPublicNodes: 11 bytes