Struct filament_node::snapshot::Worker
source · struct Worker {
queue: Receiver<Message>,
}Fields§
§queue: Receiver<Message>Implementations§
source§impl Worker
impl Worker
fn new(queue: Receiver<Message>) -> Self
async fn run(self) -> Result<()>
async fn list_snapshots(&mut self) -> Result<ListSnapshots>
async fn offer_snapshot( &mut self, _offer_snapshot: OfferSnapshot ) -> Result<OfferSnapshot>
async fn load_snapshot_chunk( &mut self, _load_snapshot_chunk: LoadSnapshotChunk ) -> Result<LoadSnapshotChunk>
async fn apply_snapshot_chunk( &mut self, _apply_snapshot_chunk: ApplySnapshotChunk ) -> Result<ApplySnapshotChunk>
Auto Trait Implementations§
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl !UnwindSafe for Worker
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