Exact socket.rs finish environments and result-specific source bodies. File-description IO and socket send/recv use distinct source result encodings.
@[reducible, inline]
Instances For
- file (capture : IoCompletionData.Capture) : Bytes
- socket (dest : Dest) : Bytes
Instances For
- address : Memory.Pointer (Option Memory.Provenance)
- length : Memory.Pointer (Option Memory.Provenance)
- dest : Dest
Instances For
- address : Memory.Pointer (Option Memory.Provenance)
- length : Memory.Pointer (Option Memory.Provenance)
- dest : Dest
Instances For
- body : Files.Result E A → EStateM StepError S Unit
Instances For
@[instance_reducible]
instance
Miri.Interpreter.OwnedSocketCompletion.instCoeForallResultEStateMStepErrorUnitFinish
{E A S : Type}
:
Equations
- One or more equations did not get rendered due to their size.
@[instance_reducible]
def
Miri.Interpreter.OwnedSocketCompletion.Finish.source
{A E S : Type}
(capture : Data A)
(body : Files.Result E A → EStateM StepError S Unit)
:
Finish S E A
Equations
- Miri.Interpreter.OwnedSocketCompletion.Finish.source capture body = { body := body, capture := some capture }
Instances For
- file : IoCompletion.Hooks S E
- address : SocketAddress.Hooks S E Iter
- pointerSize : ABI.Size
Instances For
def
Miri.Interpreter.OwnedSocketCompletion.bytes
{S E I : Type}
(h : Hooks S E I)
(capture : Bytes)
(result : Files.Result E Nat)
:
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.OwnedSocketCompletion.bytes h (Miri.Interpreter.OwnedSocketCompletion.Bytes.file capture_2) result = Miri.Interpreter.IoCompletion.invoke h.file capture_2 result
Instances For
def
Miri.Interpreter.OwnedSocketCompletion.accept
{S E I : Type}
(h : Hooks S E I)
(capture : Accept)
(result : Files.Result E (Int32 × SocketAddress.Address))
:
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.OwnedSocketCompletion.accept h capture (Except.error error) = Miri.Interpreter.IoError.setErrnoAndReturnNeg1 h.address.errors error capture.dest
Instances For
def
Miri.Interpreter.OwnedSocketCompletion.connect
{S E I : Type}
(h : Hooks S E I)
(capture : Connect)
(result : Files.Result E Unit)
:
Equations
- Miri.Interpreter.OwnedSocketCompletion.connect h capture (Except.ok PUnit.unit) = h.address.writeInt 0 capture.dest
- Miri.Interpreter.OwnedSocketCompletion.connect h capture (Except.error error) = Miri.Interpreter.IoError.setErrnoAndReturnNeg1 h.address.errors error capture.dest
Instances For
def
Miri.Interpreter.OwnedSocketCompletion.peer
{S E I : Type}
(h : Hooks S E I)
(capture : Peer)
(result : Files.Result E SocketAddress.Address)
:
Equations
- One or more equations did not get rendered due to their size.
- Miri.Interpreter.OwnedSocketCompletion.peer h capture (Except.error error) = Miri.Interpreter.IoError.setErrnoAndReturnNeg1 h.address.errors error capture.dest