Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.
This repository was archived by the owner on May 17, 2026. It is now read-only.

Mailbox does not implement TryInto<Mailbox> #12

Description

@felinira

Many Client methods expect a impl TryInto<Mailbox<'_>, Error = ValidationError>, but Mailbox does not actually implement this trait (only infallibly through the blanket From<T> for T implementation in Rust std). Not sure whether to report it at imap-types or here, but this makes it a little difficult to pass an already existing mailbox type :) And I don't think you can implement TryFrom twice, as Error is an associated type, so either way it probably needs to be solved here. Maybe through some new trait that allows both Into and TryInto, or by delegating the responsibility of conversion to the caller.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions