pub struct SendConfig {
pub max_send_attempts: u32,
pub retry_delay: Duration,
pub self_send: bool,
pub cancel_token: Option<Arc<AtomicBool>>,
pub upload_retries: u32,
pub upload_retry_delay: Duration,
pub expiration: Option<u64>,
}Expand description
Configuration for a send operation.
Fields§
§max_send_attempts: u32Max gift-wrap send attempts (default: 1).
retry_delay: DurationDelay between send retries (default: 5 seconds).
self_send: boolSend copy to own inbox for recovery/sync (default: false).
cancel_token: Option<Arc<AtomicBool>>Cancel token for file uploads — set to true to abort.
upload_retries: u32Max Blossom upload retries per server (default: 3).
upload_retry_delay: DurationDelay between upload retries (default: 2 seconds).
expiration: Option<u64>NIP-40 self-destruct expiry (unix secs) to stamp on the outgoing rumor and mirror onto the outer wrap. None = permanent. Resolved per-chat by the caller (the “Self-Destruct Timer” setting).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SendConfig
impl RefUnwindSafe for SendConfig
impl Send for SendConfig
impl Sync for SendConfig
impl Unpin for SendConfig
impl UnsafeUnpin for SendConfig
impl UnwindSafe for SendConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more