Skip to content

How to use Accept with an existing Address from rustix? #21

Description

@LAC-Tech

opcode::Accept::new wants a mutable types::SocketAddrOpaque.

https://docs.rs/rustix-uring/latest/rustix_uring/opcode/struct.Accept.html

I'm unsure how to prevision one however.

In Rustix there's this trait:

https://docs.rs/rustix/latest/rustix/net/addr/trait.SocketAddrArg.html#tymethod.with_sockaddr

but it provides a constant pointer, not a mutable one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions