Skip to main content

Verb

Enum Verb 

Source
#[repr(u8)]
pub enum Verb {
Show 30 variants Scan = 1, Format = 2, Search = 3, EndStream = 4, Ping = 5, Ok = 6, Alert = 7, Back = 8, Context = 9, Next = 10, Stats = 11, Clear = 12, Complete = 13, AuthStart = 14, AuthEnd = 15, Audio = 16, Permit = 17, Deny = 18, Elevate = 19, Audit = 20, Error = 21, Subscribe = 22, Unsubscribe = 23, Cancel = 24, M8Wave = 25, Remember = 26, Recall = 28, Forget = 29, Session = 30, User = 31,
}
Expand description

Protocol verbs mapped to control ASCII codes

Variants§

§

Scan = 1

SOH (0x01) - Scan directory

§

Format = 2

STX (0x02) - Format output

§

Search = 3

ETX (0x03) - Search files/content

§

EndStream = 4

EOT (0x04) - End stream/session

§

Ping = 5

ENQ (0x05) - Ping/health check

§

Ok = 6

ACK (0x06) - OK/acknowledgment

§

Alert = 7

BEL (0x07) - Alert/notification

§

Back = 8

BS (0x08) - Back/undo

§

Context = 9

HT (0x09) - Request context

§

Next = 10

LF (0x0A) - Next item in sequence

§

Stats = 11

VT (0x0B) - Statistics request

§

Clear = 12

FF (0x0C) - Clear/reset

§

Complete = 13

CR (0x0D) - Complete/commit

§

AuthStart = 14

SO (0x0E) - Start auth block

§

AuthEnd = 15

SI (0x0F) - End auth block

§

Audio = 16

DLE (0x10) - Audio data (AcousticMemory from liquid-rust)

§

Permit = 17

DC1 (0x11) - Permit access

§

Deny = 18

DC2 (0x12) - Deny access

§

Elevate = 19

DC3 (0x13) - Elevate privileges

§

Audit = 20

DC4 (0x14) - Audit log

§

Error = 21

NAK (0x15) - Error response

§

Subscribe = 22

SYN (0x16) - Subscribe to updates

§

Unsubscribe = 23

ETB (0x17) - Unsubscribe

§

Cancel = 24

CAN (0x18) - Cancel operation

§

M8Wave = 25

EM (0x19) - Wave signal (M8 memory)

§

Remember = 26

SUB (0x1A) - Remember/store

§

Recall = 28

FS (0x1C) - Recall from memory

§

Forget = 29

GS (0x1D) - Forget/delete

§

Session = 30

RS (0x1E) - Session control

§

User = 31

US (0x1F) - User identification

Implementations§

Source§

impl Verb

Source

pub fn from_byte(b: u8) -> Option<Self>

Create verb from raw byte

Source

pub fn as_byte(self) -> u8

Get raw byte value

Source

pub fn requires_auth(self) -> bool

Check if verb requires authentication

Source

pub fn security_level(self) -> u8

Get the security level required for this verb

Source

pub fn name(self) -> &'static str

Human-readable name

Trait Implementations§

Source§

impl Clone for Verb

Source§

fn clone(&self) -> Verb

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Verb

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for Verb

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Verb

Source§

fn eq(&self, other: &Verb) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Verb

Source§

impl Eq for Verb

Source§

impl StructuralPartialEq for Verb

Auto Trait Implementations§

§

impl Freeze for Verb

§

impl RefUnwindSafe for Verb

§

impl Send for Verb

§

impl Sync for Verb

§

impl Unpin for Verb

§

impl UnsafeUnpin for Verb

§

impl UnwindSafe for Verb

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.