Struct filament_node::info::Worker
source · struct Worker {
queue: Receiver<Message>,
storage: Storage,
}Fields§
§queue: Receiver<Message>§storage: StorageImplementations§
source§impl Worker
impl Worker
fn new(storage: Storage, queue: Receiver<Message>) -> Self
async fn run(self) -> Result<()>
async fn info(&mut self, info: Info) -> Result<Info>
async fn query(&mut self, query: Query) -> Result<Query>
async fn echo(&mut self, _echo: Echo) -> Result<Echo>
async fn set_option(&mut self, _set_option: SetOption) -> Result<SetOption>
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