pub struct VarlinkRoowhoo2ClientServer {
whod_status_store: RwhodStatusStore,
}Fields§
§whod_status_store: RwhodStatusStoreImplementations§
Source§impl VarlinkRoowhoo2ClientServer
impl VarlinkRoowhoo2ClientServer
pub fn new(whod_status_store: RwhodStatusStore) -> Self
Source§impl VarlinkRoowhoo2ClientServer
impl VarlinkRoowhoo2ClientServer
async fn handle_rwho_request(&self, _all: bool) -> VarlinkRwhoResponse
async fn handle_ruptime_request(&self) -> VarlinkRuptimeResponse
Trait Implementations§
Source§impl Clone for VarlinkRoowhoo2ClientServer
impl Clone for VarlinkRoowhoo2ClientServer
Source§fn clone(&self) -> VarlinkRoowhoo2ClientServer
fn clone(&self) -> VarlinkRoowhoo2ClientServer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VarlinkRoowhoo2ClientServer
impl Debug for VarlinkRoowhoo2ClientServer
Source§impl Service for VarlinkRoowhoo2ClientServer
impl Service for VarlinkRoowhoo2ClientServer
Source§type MethodCall<'de> = VarlinkMethod
type MethodCall<'de> = VarlinkMethod
The type of method call that this service handles. Read more
Source§type ReplyParams<'se> = VarlinkReply
type ReplyParams<'se> = VarlinkReply
The type of the successful reply. Read more
Source§type ReplyStreamParams = ()
type ReplyStreamParams = ()
The type of the item that
Service::ReplyStream will be expected to yield. Read moreSource§type ReplyError<'se> = VarlinkReplyError
type ReplyError<'se> = VarlinkReplyError
The type of the error reply. Read more
Source§async fn handle<'service, Sock: Socket>(
&'service mut self,
call: &'service Call<Self::MethodCall<'_>>,
_conn: &mut Connection<Sock>,
) -> MethodReply<Self::ReplyParams<'service>, Self::ReplyStream, Self::ReplyError<'service>>
async fn handle<'service, Sock: Socket>( &'service mut self, call: &'service Call<Self::MethodCall<'_>>, _conn: &mut Connection<Sock>, ) -> MethodReply<Self::ReplyParams<'service>, Self::ReplyStream, Self::ReplyError<'service>>
Handle a method call.
Auto Trait Implementations§
impl Freeze for VarlinkRoowhoo2ClientServer
impl !RefUnwindSafe for VarlinkRoowhoo2ClientServer
impl Send for VarlinkRoowhoo2ClientServer
impl Sync for VarlinkRoowhoo2ClientServer
impl Unpin for VarlinkRoowhoo2ClientServer
impl !UnwindSafe for VarlinkRoowhoo2ClientServer
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