pub struct Rest<N: Network, C: ConsensusStorage<N>, R: Routing<N>> { /* private fields */ }Expand description
A REST API server for the ledger.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<N, C, R> Freeze for Rest<N, C, R>where
<N as Network>::BlockHash: Freeze,
C: Freeze,
<N as Network>::StateRoot: Freeze,
<N as Environment>::Field: Freeze,
<N as Environment>::Scalar: Freeze,
<N as Environment>::Projective: Freeze,
impl<N, C, R> !RefUnwindSafe for Rest<N, C, R>
impl<N, C, R> Send for Rest<N, C, R>
impl<N, C, R> Sync for Rest<N, C, R>
impl<N, C, R> Unpin for Rest<N, C, R>where
<N as Network>::BlockHash: Unpin,
C: Unpin,
<N as Network>::StateRoot: Unpin,
N: Unpin,
<N as Environment>::Field: Unpin,
<N as Environment>::Scalar: Unpin,
<N as Network>::TransactionID: Unpin,
<N as Environment>::Projective: Unpin,
<N as Network>::RatificationID: Unpin,
<N as Network>::TransitionID: Unpin,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin,
impl<N, C, R> !UnwindSafe for Rest<N, C, R>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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