Enum libunftp::notification::DataEvent
source · pub enum DataEvent {
Got {
path: String,
bytes: u64,
},
Put {
path: String,
bytes: u64,
},
Deleted {
path: String,
},
MadeDir {
path: String,
},
RemovedDir {
path: String,
},
Renamed {
from: String,
to: String,
},
}
Expand description
An event signalling a change in data on the storage back-end. To identify the corresponding user
or session see the EventMeta
struct.
Variants§
Got
A RETR command finished successfully
Fields
Put
A STOR command finished successfully
Deleted
A DEL command finished successfully
MadeDir
A MKD command finished successfully
RemovedDir
A RMD command finished successfully
Renamed
A RNFR & RNTO command sequence finished successfully. This can be for a file or a directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataEvent
impl RefUnwindSafe for DataEvent
impl Send for DataEvent
impl Sync for DataEvent
impl Unpin for DataEvent
impl UnwindSafe for DataEvent
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