Skip to main content

attach

Function attach 

Source
async fn attach(
    http: Client,
    signer: Signer,
    account: PublicKey,
    servers: Vec<Url>,
    picked: Picked,
    size: Sent,
    sent: Sent,
) -> Result<Attachment, AttachFailure>
Expand description

Send picked to the first of servers that takes it, as account, which signer signs for: read, a picture made bare (see crate::media), hashed, authorized, and sent (see blossom::send), with size set to how large it is as it goes and sent kept at how much of it has gone.