pub enum Action {
Show 25 variants
Nop(Nop),
ReadFileData(ReadFileData),
ReadFileProperties(FileIdAction),
WriteFileData(FileDataAction),
WriteFileProperties(FilePropertiesAction),
ActionQuery(QueryAction),
BreakQuery(QueryAction),
PermissionRequest(PermissionRequest),
VerifyChecksum(QueryAction),
ExistFile(FileIdAction),
CreateNewFile(FilePropertiesAction),
DeleteFile(FileIdAction),
RestoreFile(FileIdAction),
FlushFile(FileIdAction),
CopyFile(CopyFile),
ExecuteFile(FileIdAction),
ReturnFileData(FileDataAction),
ReturnFileProperties(FilePropertiesAction),
Status(Status),
ResponseTag(ResponseTag),
Chunk(Chunk),
Logic(Logic),
Forward(Forward),
IndirectForward(IndirectForward),
RequestTag(RequestTag),
}
Expand description
An ALP Action
Variants§
Nop(Nop)
ReadFileData(ReadFileData)
ReadFileProperties(FileIdAction)
WriteFileData(FileDataAction)
WriteFileProperties(FilePropertiesAction)
ActionQuery(QueryAction)
BreakQuery(QueryAction)
PermissionRequest(PermissionRequest)
VerifyChecksum(QueryAction)
ExistFile(FileIdAction)
CreateNewFile(FilePropertiesAction)
DeleteFile(FileIdAction)
RestoreFile(FileIdAction)
FlushFile(FileIdAction)
CopyFile(CopyFile)
ExecuteFile(FileIdAction)
ReturnFileData(FileDataAction)
ReturnFileProperties(FilePropertiesAction)
Status(Status)
ResponseTag(ResponseTag)
Chunk(Chunk)
Logic(Logic)
Forward(Forward)
IndirectForward(IndirectForward)
RequestTag(RequestTag)
Implementations§
source§impl Action
impl Action
pub fn nop(group: bool, resp: bool) -> Self
pub fn read_file_data( group: bool, resp: bool, file_id: u8, offset: u32, size: u32 ) -> Self
pub fn write_file_data<'a, T: Into<&'a [u8]> + 'a>( group: bool, resp: bool, file_id: u8, offset: u32, data: T ) -> Self
pub fn return_file_data<'a, T: Into<&'a [u8]> + 'a>( group: bool, resp: bool, file_id: u8, offset: u32, data: T ) -> Self
pub fn write_file_properties( group: bool, resp: bool, file_id: u8, header: FileHeader ) -> Self
pub fn create_new_file( group: bool, resp: bool, file_id: u8, header: FileHeader ) -> Self
pub fn return_file_properties( group: bool, resp: bool, file_id: u8, header: FileHeader ) -> Self
pub fn action_query(group: bool, resp: bool, query: Query) -> Self
pub fn break_query(group: bool, resp: bool, query: Query) -> Self
pub fn verify_checksum(group: bool, resp: bool, query: Query) -> Self
pub fn read_file_properties(group: bool, resp: bool, file_id: u8) -> Self
pub fn test_exist_file(group: bool, resp: bool, file_id: u8) -> Self
pub fn test_delete_file(group: bool, resp: bool, file_id: u8) -> Self
pub fn test_restore_file(group: bool, resp: bool, file_id: u8) -> Self
pub fn test_flush_file(group: bool, resp: bool, file_id: u8) -> Self
pub fn test_execute_file(group: bool, resp: bool, file_id: u8) -> Self
pub fn copy_file( group: bool, resp: bool, src_file_id: u8, dst_file_id: u8 ) -> Self
pub fn status(status: Status) -> Self
pub fn response_tag(eop: bool, err: bool, id: u8) -> Self
pub fn chunk(chunk: Chunk) -> Self
pub fn logic(logic: Logic) -> Self
pub fn forward(forward: Forward) -> Self
pub fn indirect_forward(indirect_forward: IndirectForward) -> Self
pub fn request_tag(eop: bool, id: u8) -> Self
Trait Implementations§
source§impl Codec for Action
impl Codec for Action
type Error = ActionDecodingError
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Computes the number of bytes required to encode the item.
source§unsafe fn encode_in(&self, out: &mut [u8]) -> usize
unsafe fn encode_in(&self, out: &mut [u8]) -> usize
Encode the item into a given byte array. Read more
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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