pub struct ActiveUploadSession {
pub session_id: String,
pub sender_ip: IpAddr,
pub cert_fingerprint: Option<String>,
pub files: HashMap<String, SessionFile>,
pub created_at: Instant,
}Expand description
An active upload session with accepted files.
Fields§
§session_id: StringUnique session identifier.
sender_ip: IpAddrIP address of the sender.
cert_fingerprint: Option<String>Certificate fingerprint of sender (if mTLS used).
files: HashMap<String, SessionFile>Files accepted for upload keyed by file ID.
created_at: InstantWhen the session became active.
Implementations§
Source§impl ActiveUploadSession
impl ActiveUploadSession
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Checks if all accepted files have reached a terminal state (Completed or Failed).
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Checks if all accepted files were successfully completed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActiveUploadSession
impl RefUnwindSafe for ActiveUploadSession
impl Send for ActiveUploadSession
impl Sync for ActiveUploadSession
impl Unpin for ActiveUploadSession
impl UnsafeUnpin for ActiveUploadSession
impl UnwindSafe for ActiveUploadSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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