pub enum Output<'x, const LLEN: usize, const SLEN: usize> {
Packet(usize, Cast),
Timeout(Time),
Remote(ServiceInfo<'x, LLEN>),
}Expand description
Output from the Server.
Variants§
Packet(usize, Cast)
A packet to send somewhere.
The data is in the buffer given to Server::handle and the amount of the
buffer use is the first argument of the tuple.å
Timeout(Time)
Next time the service expects a timeout.
It is fine to send more timeouts before this.
Remote(ServiceInfo<'x, LLEN>)
The Server discovered a remote instance of a declared service type.
Auto Trait Implementations§
impl<'x, const LLEN: usize, const SLEN: usize> Freeze for Output<'x, LLEN, SLEN>
impl<'x, const LLEN: usize, const SLEN: usize> RefUnwindSafe for Output<'x, LLEN, SLEN>
impl<'x, const LLEN: usize, const SLEN: usize> Send for Output<'x, LLEN, SLEN>
impl<'x, const LLEN: usize, const SLEN: usize> Sync for Output<'x, LLEN, SLEN>
impl<'x, const LLEN: usize, const SLEN: usize> Unpin for Output<'x, LLEN, SLEN>
impl<'x, const LLEN: usize, const SLEN: usize> UnwindSafe for Output<'x, LLEN, SLEN>
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