Skip to content

Cancelling on Result Err #496

Closed
Closed
@PSeitz

Description

@PSeitz

Hi I have a function, which returns an Result<(), Error>. I want to early return on errors.

I saw in result.rs something, that uses while_some may be the right method here, although I don't know how to use that. I couldn't find something in the documentation.

Also a while_ok method would probably be nice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions