trait EvalContextPrivExt<'tcx>: MiriInterpCxExt<'tcx> {
// Provided methods
fn block_for_send(
&mut self,
socket: FileDescriptionRef<UdpSocket>,
deadline: Option<Deadline>,
buffer_ptr: Pointer,
length: u64,
dest_addr: Option<SocketAddr>,
finish: DynMachineCallback<'tcx, Result<u64, IoError>>,
) -> InterpResult<'tcx> { ... }
fn try_non_block_send(
&mut self,
socket: &FileDescriptionRef<UdpSocket>,
buffer_ptr: Pointer,
length: u64,
dest_addr: Option<SocketAddr>,
) -> InterpResult<'tcx, Result<u64, IoError>> { ... }
fn block_for_recv(
&mut self,
socket: FileDescriptionRef<UdpSocket>,
deadline: Option<Deadline>,
buffer_ptr: Pointer,
length: u64,
should_peek: bool,
finish: DynMachineCallback<'tcx, Result<(u64, SocketAddr), IoError>>,
) -> InterpResult<'tcx> { ... }
fn try_non_block_recv(
&mut self,
socket: &FileDescriptionRef<UdpSocket>,
buffer_ptr: Pointer,
length: u64,
should_peek: bool,
) -> InterpResult<'tcx, Result<(u64, SocketAddr), IoError>> { ... }
}Provided Methods§
Sourcefn block_for_send(
&mut self,
socket: FileDescriptionRef<UdpSocket>,
deadline: Option<Deadline>,
buffer_ptr: Pointer,
length: u64,
dest_addr: Option<SocketAddr>,
finish: DynMachineCallback<'tcx, Result<u64, IoError>>,
) -> InterpResult<'tcx>
fn block_for_send( &mut self, socket: FileDescriptionRef<UdpSocket>, deadline: Option<Deadline>, buffer_ptr: Pointer, length: u64, dest_addr: Option<SocketAddr>, finish: DynMachineCallback<'tcx, Result<u64, IoError>>, ) -> InterpResult<'tcx>
Block the thread until we can send bytes into the connected socket or an error occurred.
This recursively calls itself should the operation still block for some reason.
Sourcefn try_non_block_send(
&mut self,
socket: &FileDescriptionRef<UdpSocket>,
buffer_ptr: Pointer,
length: u64,
dest_addr: Option<SocketAddr>,
) -> InterpResult<'tcx, Result<u64, IoError>>
fn try_non_block_send( &mut self, socket: &FileDescriptionRef<UdpSocket>, buffer_ptr: Pointer, length: u64, dest_addr: Option<SocketAddr>, ) -> InterpResult<'tcx, Result<u64, IoError>>
Attempt to send bytes to another socket. If dest_addr is Some, the data
is sent to the address specified in dest_addr. Otherwise, the data is sent
to the default destination address.
Sourcefn block_for_recv(
&mut self,
socket: FileDescriptionRef<UdpSocket>,
deadline: Option<Deadline>,
buffer_ptr: Pointer,
length: u64,
should_peek: bool,
finish: DynMachineCallback<'tcx, Result<(u64, SocketAddr), IoError>>,
) -> InterpResult<'tcx>
fn block_for_recv( &mut self, socket: FileDescriptionRef<UdpSocket>, deadline: Option<Deadline>, buffer_ptr: Pointer, length: u64, should_peek: bool, finish: DynMachineCallback<'tcx, Result<(u64, SocketAddr), IoError>>, ) -> InterpResult<'tcx>
Block the thread until we can receive bytes from the socket or an error occurred.
This recursively calls itself should the operation still block for some reason.
Sourcefn try_non_block_recv(
&mut self,
socket: &FileDescriptionRef<UdpSocket>,
buffer_ptr: Pointer,
length: u64,
should_peek: bool,
) -> InterpResult<'tcx, Result<(u64, SocketAddr), IoError>>
fn try_non_block_recv( &mut self, socket: &FileDescriptionRef<UdpSocket>, buffer_ptr: Pointer, length: u64, should_peek: bool, ) -> InterpResult<'tcx, Result<(u64, SocketAddr), IoError>>
Attempt to receive bytes from the socket in a non-blocking manner.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".