pub struct DownloadSession {
pub session_id: String,
pub client_ip: IpAddr,
pub accepted: bool,
pub created_at: Instant,
}Expand description
An active or accepted reverse transfer download session for a client IP.
Fields§
§session_id: StringUnique session identifier (often client IP string or UUID).
client_ip: IpAddrClient remote IP.
accepted: boolWhether this session has been approved / accepted.
created_at: InstantWhen this session was created.
Trait Implementations§
Source§impl Clone for DownloadSession
impl Clone for DownloadSession
Auto Trait Implementations§
impl Freeze for DownloadSession
impl RefUnwindSafe for DownloadSession
impl Send for DownloadSession
impl Sync for DownloadSession
impl Unpin for DownloadSession
impl UnsafeUnpin for DownloadSession
impl UnwindSafe for DownloadSession
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