Enum lunatic_process::message::Resource
source · [−]pub enum Resource {
None,
Process(Arc<dyn Process>),
TcpStream(TcpStream),
UdpSocket(Arc<UdpSocket>),
}Expand description
A resource (WasmProcess, TcpStream,
…) that is attached to a DataMessage.
Variants
None
Process(Arc<dyn Process>)
TcpStream(TcpStream)
UdpSocket(Arc<UdpSocket>)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl !UnwindSafe for Resource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more