pub enum TableOp {
Get(Symbol),
Set(Symbol, Expr),
Has(Symbol),
Delete(Symbol),
Keys,
Entries,
Len,
Clear,
Mkdir(Symbol),
Opendir(Symbol),
Rmdir(Symbol),
IsDir(Symbol),
}Expand description
A single table operation, independent of any transport.
Variants§
Get(Symbol)
Read the value at key.
Set(Symbol, Expr)
Store value at key.
Has(Symbol)
Whether key is present.
Delete(Symbol)
Remove key, returning the prior value. Wire op: del.
Keys
All keys in this table.
Entries
All entries in this table.
Len
The number of entries.
Clear
Remove every entry.
Mkdir(Symbol)
Create a subdirectory named name.
Opendir(Symbol)
Open the subdirectory named name.
Rmdir(Symbol)
Remove the subdirectory named name.
IsDir(Symbol)
Whether name is a subdirectory. Wire op: dir?.
Trait Implementations§
impl StructuralPartialEq for TableOp
Auto Trait Implementations§
impl Freeze for TableOp
impl RefUnwindSafe for TableOp
impl Send for TableOp
impl Sync for TableOp
impl Unpin for TableOp
impl UnsafeUnpin for TableOp
impl UnwindSafe for TableOp
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