Enum Resource
pub enum Resource {
    Port(Port),
    Os(OsResource),
}Expand description
A resource that can be sent via a port.
Variants§
Port(Port)
Another port.
Os(OsResource)
An OS resource (file descriptor, Windows handle, or socket).
Trait Implementations§
§impl MessageDecode<'_, OwnedMessage, Resource> for MessageEncoder
 
impl MessageDecode<'_, OwnedMessage, Resource> for MessageEncoder
§fn read_message(
    item: &mut InplaceOption<'_, OwnedMessage>,
    reader: MessageReader<'_, '_, Resource>,
) -> Result<(), Error>
 
fn read_message( item: &mut InplaceOption<'_, OwnedMessage>, reader: MessageReader<'_, '_, Resource>, ) -> Result<(), Error>
Reads a message into 
item.§impl MessageEncode<Box<dyn DynSerializeMessage>, Resource> for MessageEncoder
 
impl MessageEncode<Box<dyn DynSerializeMessage>, Resource> for MessageEncoder
§fn write_message(
    item: Box<dyn DynSerializeMessage>,
    writer: MessageWriter<'_, '_, Resource>,
)
 
fn write_message( item: Box<dyn DynSerializeMessage>, writer: MessageWriter<'_, '_, Resource>, )
Writes 
item as a message.§fn compute_message_size(
    item: &mut Box<dyn DynSerializeMessage>,
    sizer: MessageSizer<'_>,
)
 
fn compute_message_size( item: &mut Box<dyn DynSerializeMessage>, sizer: MessageSizer<'_>, )
Computes the size of 
item as a message. Read more§impl MessageEncode<Message<'_>, Resource> for MessageEncoder
 
impl MessageEncode<Message<'_>, Resource> for MessageEncoder
§fn write_message(item: Message<'_>, writer: MessageWriter<'_, '_, Resource>)
 
fn write_message(item: Message<'_>, writer: MessageWriter<'_, '_, Resource>)
Writes 
item as a message.§fn compute_message_size(item: &mut Message<'_>, sizer: MessageSizer<'_>)
 
fn compute_message_size(item: &mut Message<'_>, sizer: MessageSizer<'_>)
Computes the size of 
item as a message. Read more§impl MessageEncode<OwnedMessage, Resource> for MessageEncoder
 
impl MessageEncode<OwnedMessage, Resource> for MessageEncoder
§fn write_message(item: OwnedMessage, writer: MessageWriter<'_, '_, Resource>)
 
fn write_message(item: OwnedMessage, writer: MessageWriter<'_, '_, Resource>)
Writes 
item as a message.§fn compute_message_size(item: &mut OwnedMessage, sizer: MessageSizer<'_>)
 
fn compute_message_size(item: &mut OwnedMessage, sizer: MessageSizer<'_>)
Computes the size of 
item as a message. Read more§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for CancelContext
 
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for CancelContext
§const DECODERS: &'static [ErasedDecoderEntry]
 
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
§impl<'encoding, T> StructDecodeMetadata<'encoding, Resource> for Cell<T>
 
impl<'encoding, T> StructDecodeMetadata<'encoding, Resource> for Cell<T>
§const DECODERS: &'static [ErasedDecoderEntry]
 
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
§impl<'encoding, T> StructDecodeMetadata<'encoding, Resource> for CellUpdater<T>
 
impl<'encoding, T> StructDecodeMetadata<'encoding, Resource> for CellUpdater<T>
§const DECODERS: &'static [ErasedDecoderEntry]
 
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
§impl<'encoding, I, R> StructDecodeMetadata<'encoding, Resource> for Rpc<I, R>
 
impl<'encoding, I, R> StructDecodeMetadata<'encoding, Resource> for Rpc<I, R>
§const DECODERS: &'static [ErasedDecoderEntry]
 
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for WritePipe
 
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for WritePipe
§const DECODERS: &'static [ErasedDecoderEntry]
 
const DECODERS: &'static [ErasedDecoderEntry]
The list of decoder vtables.
§impl StructEncodeMetadata<Resource> for CancelContext
 
impl StructEncodeMetadata<Resource> for CancelContext
§const ENCODERS: &'static [ErasedEncoderEntry]
 
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
§impl<T> StructEncodeMetadata<Resource> for Cell<T>
 
impl<T> StructEncodeMetadata<Resource> for Cell<T>
§const ENCODERS: &'static [ErasedEncoderEntry]
 
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
§impl<T> StructEncodeMetadata<Resource> for CellUpdater<T>
 
impl<T> StructEncodeMetadata<Resource> for CellUpdater<T>
§const ENCODERS: &'static [ErasedEncoderEntry]
 
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
§impl<I, R> StructEncodeMetadata<Resource> for Rpc<I, R>
 
impl<I, R> StructEncodeMetadata<Resource> for Rpc<I, R>
§const ENCODERS: &'static [ErasedEncoderEntry]
 
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
§impl StructEncodeMetadata<Resource> for WritePipe
 
impl StructEncodeMetadata<Resource> for WritePipe
§const ENCODERS: &'static [ErasedEncoderEntry]
 
const ENCODERS: &'static [ErasedEncoderEntry]
The list of encoder vtables.
Auto Trait Implementations§
impl Freeze for Resource
impl !RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl !UnwindSafe for Resource
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