pub struct MemcacheOperation {
pub protocol: MemcacheProtocol,
pub cmd: MemcacheCommand,
pub key: String,
pub nkeys: u32,
pub value_bytes: u32,
pub duration_us: u32,
pub status: MemcacheStatus,
}Expand description
Memcache Operation - Format (0,2200)
Sampled memcache operation
§XDR Definition (sFlow Memcache)
/* Memcache operation */
/* opaque = flow_data; enterprise = 0; format = 2200 */
struct memcache_operation {
memcache_protocol protocol; /* protocol */
memcache_cmd cmd; /* command */
string<255> key; /* key used to store/retrieve data */
unsigned int nkeys; /* number of keys
(including sampled key) */
unsigned int value_bytes; /* size of the value (in bytes) */
unsigned int uS; /* duration of the operation
(in microseconds) */
memcache_status status; /* status of command */
}Fields§
§protocol: MemcacheProtocolProtocol (ASCII or Binary)
cmd: MemcacheCommandCommand type
key: StringKey used to store/retrieve data
nkeys: u32Number of keys (including sampled key)
value_bytes: u32Size of the value in bytes
duration_us: u32Duration of the operation in microseconds
status: MemcacheStatusStatus of the command
Trait Implementations§
Source§impl Clone for MemcacheOperation
impl Clone for MemcacheOperation
Source§fn clone(&self) -> MemcacheOperation
fn clone(&self) -> MemcacheOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemcacheOperation
impl Debug for MemcacheOperation
Source§impl PartialEq for MemcacheOperation
impl PartialEq for MemcacheOperation
impl Eq for MemcacheOperation
impl StructuralPartialEq for MemcacheOperation
Auto Trait Implementations§
impl Freeze for MemcacheOperation
impl RefUnwindSafe for MemcacheOperation
impl Send for MemcacheOperation
impl Sync for MemcacheOperation
impl Unpin for MemcacheOperation
impl UnwindSafe for MemcacheOperation
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