pub struct ProtocolSystemsInfo {
pub dci_protocols: HashSet<String>,
pub other_available: HashSet<String>,
}Expand description
Result of fetching protocol systems: which protocols use DCI, and which available protocols on the server were not requested by the client.
Fields§
§dci_protocols: HashSet<String>§other_available: HashSet<String>Implementations§
Source§impl ProtocolSystemsInfo
impl ProtocolSystemsInfo
Sourcepub async fn fetch(
rpc_client: &HttpRPCClient,
chain: Chain,
requested_exchanges: &HashSet<String>,
) -> Self
pub async fn fetch( rpc_client: &HttpRPCClient, chain: Chain, requested_exchanges: &HashSet<String>, ) -> Self
Fetches protocol systems from the server and classifies them: which use DCI,
and which are available but not in requested_exchanges.
Sourcepub fn log_other_available(&self)
pub fn log_other_available(&self)
Logs the protocols available on the server that the client didn’t subscribe to.
Auto Trait Implementations§
impl Freeze for ProtocolSystemsInfo
impl RefUnwindSafe for ProtocolSystemsInfo
impl Send for ProtocolSystemsInfo
impl Sync for ProtocolSystemsInfo
impl Unpin for ProtocolSystemsInfo
impl UnsafeUnpin for ProtocolSystemsInfo
impl UnwindSafe for ProtocolSystemsInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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