pub struct Writer {
host: Host,
store: Store,
connections: HashMap<ConnectionId, Outbox>,
next_connection: u64,
}Fields§
§host: Host§store: Store§connections: HashMap<ConnectionId, Outbox>§next_connection: u64Implementations§
Source§impl Writer
impl Writer
pub fn new(host: Host, store: Store) -> Self
pub async fn run(self, requests: UnboundedReceiver<Request>)
fn connect(&mut self, outbox: Outbox, reply: Sender<ConnectionId>)
fn submit(&mut self, from: ConnectionId, nonce: Nonce, envelope: CommitEnvelope)
fn send(&self, to: ConnectionId, message: &ServerMsg)
Auto Trait Implementations§
impl !Freeze for Writer
impl !RefUnwindSafe for Writer
impl Send for Writer
impl !Sync for Writer
impl Unpin for Writer
impl UnsafeUnpin for Writer
impl !UnwindSafe for Writer
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