Struct loki::rest::AdversaryRest
source · pub struct AdversaryRest {
address: Option<SocketAddr>,
adversary: AdversaryNode,
signing_key: Option<SigningKey<Ed25519>>,
stake_pool: Option<StakePool>,
}
Fields§
§address: Option<SocketAddr>
§adversary: AdversaryNode
§signing_key: Option<SigningKey<Ed25519>>
§stake_pool: Option<StakePool>
Implementations§
source§impl AdversaryRest
impl AdversaryRest
pub fn new(adversary: AdversaryNode) -> Self
pub fn address(self, address: SocketAddr) -> Self
pub fn signing_key(self, key: SigningKey<Ed25519>) -> Self
pub fn stake_pool(self, stake_pool: StakePool) -> Self
pub fn start(self)
Auto Trait Implementations§
impl !RefUnwindSafe for AdversaryRest
impl Send for AdversaryRest
impl !Sync for AdversaryRest
impl Unpin for AdversaryRest
impl !UnwindSafe for AdversaryRest
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request