pub struct Proposer(/* private fields */);Expand description
Whoever a proposal is charged to, on the way into crate::App::propose.
A wrapper rather than an impl From<String> for Actor, and the difference is the whole point:
a conversion on Actor itself would be a public way to make one out of a string, which is what
Actor’s private field exists to prevent. This converts into a proposal’s actor — a
harness naming one, a benchmark, beck test — and the wire path does not use it, because
session.rs already holds an Actor that Identity::verify produced.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Proposer
impl RefUnwindSafe for Proposer
impl Send for Proposer
impl Sync for Proposer
impl Unpin for Proposer
impl UnwindSafe for Proposer
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